FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
emscripten/tests/filesystem/src.js at incoming · JavaScriptIOT/emscripten · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
JavaScriptIOT
/
emscripten
Public
forked from
emscripten-core/emscripten
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
emscripten
/
tests
/
filesystem
/
src.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
51 lines (48 loc) · 1.56 KB
Breadcrumbs
emscripten
/
tests
/
filesystem
/
src.js
Copy path
File metadata and controls
51 lines (48 loc) · 1.56 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
var
dummy_device
=
FS
.
makedev
(
64
,
0
)
;
FS
.
registerDevice
(
dummy_device
,
{
}
)
;
FS
.
mkdir
(
'/forbidden'
,
0000
)
;
FS
.
mkdir
(
'/forbidden/test'
)
;
FS
.
mkdir
(
'/abc'
)
;
FS
.
mkdir
(
'/abc/123'
)
;
FS
.
mkdir
(
'/abc/456'
)
;
FS
.
mkdir
(
'/def'
)
;
FS
.
mkdir
(
'/def/789'
)
;
FS
.
mkdev
(
'/abc/deviceA'
,
dummy_device
)
;
FS
.
mkdev
(
'/def/deviceB'
,
dummy_device
)
;
FS
.
symlink
(
'123'
,
'/abc/localLink'
)
;
FS
.
symlink
(
'/'
,
'/abc/rootLink'
)
;
FS
.
symlink
(
'../def'
,
'/abc/relativeLink'
)
;
FS
.
ignorePermissions
=
false
;
function
explore
(
path
)
{
Module
.
print
(
path
)
;
var
ret
=
FS
.
analyzePath
(
path
)
;
Module
.
print
(
' isRoot: '
+
ret
.
isRoot
)
;
Module
.
print
(
' exists: '
+
ret
.
exists
)
;
Module
.
print
(
' error: '
+
ret
.
error
)
;
Module
.
print
(
' path: '
+
ret
.
path
)
;
Module
.
print
(
' name: '
+
ret
.
name
)
;
Module
.
print
(
' object.contents: '
+
(
ret
.
object
&&
JSON
.
stringify
(
Object
.
keys
(
ret
.
object
.
contents
||
{
}
)
)
)
)
;
Module
.
print
(
' parentExists: '
+
ret
.
parentExists
)
;
Module
.
print
(
' parentPath: '
+
ret
.
parentPath
)
;
Module
.
print
(
' parentObject.contents: '
+
(
ret
.
parentObject
&&
JSON
.
stringify
(
Object
.
keys
(
ret
.
parentObject
.
contents
)
)
)
)
;
Module
.
print
(
''
)
;
}
FS
.
currentPath
=
'/abc'
;
explore
(
'/'
)
;
explore
(
'.'
)
;
explore
(
'..'
)
;
explore
(
'../..'
)
;
explore
(
'/abc'
)
;
explore
(
'/abc/123'
)
;
explore
(
'/abc/noexist'
)
;
explore
(
'/abc/deviceA'
)
;
explore
(
'/abc/localLink'
)
;
explore
(
'/abc/rootLink'
)
;
explore
(
'/abc/relativeLink'
)
;
explore
(
'/abc/relativeLink/deviceB'
)
;
explore
(
'/abc/rootLink/noexist'
)
;
explore
(
'/abc/rootLink/abc/noexist'
)
;
explore
(
'/forbidden'
)
;
explore
(
'/forbidden/test'
)
;
explore
(
'/forbidden/noexist'
)
;
explore
(
'/noexist1/noexist2'
)
;
Back
|
FazBrowse Home
|
New Git URL