Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
5b2d3c51
Commit
5b2d3c51
authored
Feb 16, 2021
by
ioedeveloper
Committed by
GitHub
Feb 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert unused changes
parent
44f40f51
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
8 deletions
+2
-8
fileManager.js
apps/remix-ide/src/app/files/fileManager.js
+2
-7
helper.js
apps/remix-ide/src/lib/helper.js
+0
-1
No files found.
apps/remix-ide/src/app/files/fileManager.js
View file @
5b2d3c51
...
...
@@ -100,18 +100,13 @@ class FileManager extends Plugin {
* @param {string} path path of the directory or file
* @returns {boolean} true if the path exists
*/
async
exists
(
path
,
type
)
{
exists
(
path
)
{
const
provider
=
this
.
fileProviderOf
(
path
)
const
result
=
await
provider
.
exists
(
path
,
(
err
,
result
)
=>
{
const
result
=
provider
.
exists
(
path
,
(
err
,
result
)
=>
{
if
(
err
)
return
false
return
result
})
if
(
type
===
'file'
)
{
return
result
&&
await
this
.
isFile
(
path
)
}
else
if
(
type
===
'folder'
)
{
return
result
&&
await
this
.
isDirectory
(
path
)
}
return
result
}
...
...
apps/remix-ide/src/lib/helper.js
View file @
5b2d3c51
...
...
@@ -37,7 +37,6 @@ module.exports = {
()
=>
{
return
exist
},
(
callback
)
=>
{
fileProvider
.
exists
(
name
+
counter
+
prefix
+
'.'
+
ext
,
(
error
,
currentExist
)
=>
{
console
.
log
(
'currentExists: '
,
currentExist
)
if
(
error
)
{
callback
(
error
)
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment