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
e1cd9726
Commit
e1cd9726
authored
Oct 01, 2018
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add folderIsReadOnly
parent
8dc39937
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
remixd
bin/remixd
+1
-1
sharedFolder.js
src/services/sharedFolder.js
+4
-0
No files found.
bin/remixd
View file @
e1cd9726
...
...
@@ -55,7 +55,7 @@ if (program.sharedFolder) {
var
sharedFolderrouter
=
new
Router
(
65520
,
servicesList
[
'sharedfolder'
],
{
remixIdeUrl
:
program
.
remixIde
},
(
webSocket
)
=>
{
servicesList
[
'sharedfolder'
].
setWebSocket
(
webSocket
)
servicesList
[
'sharedfolder'
].
setupNotifications
(
program
.
sharedFolder
)
servicesList
[
'sharedfolder'
].
sharedFolder
(
program
.
sharedFolder
,
program
.
readOnly
)
servicesList
[
'sharedfolder'
].
sharedFolder
(
program
.
sharedFolder
,
program
.
readOnly
||
false
)
})
killCallBack
.
push
(
sharedFolderrouter
.
start
())
}
...
...
src/services/sharedFolder.js
View file @
e1cd9726
...
...
@@ -38,6 +38,10 @@ module.exports = {
}
},
folderIsReadOnly
:
function
(
args
,
cb
)
{
return
cb
(
null
,
this
.
readOnly
)
},
get
:
function
(
args
,
cb
)
{
var
path
=
utils
.
absolutePath
(
args
.
path
,
this
.
sharedFolder
)
if
(
!
fs
.
existsSync
(
path
))
{
...
...
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