Skip to content

Commit 43f949e

Browse files
committed
Add globbing info
Signed-off-by: Darshan Sen <[email protected]>
1 parent 97575a6 commit 43f949e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/virtual-file-system-requirements.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ using `/a/b/sea/file.txt`. This approach is similar to how Electron's [ASAR][]
6868
works, i.e., if the application asar is placed in `/a/b/app.asar`, the
6969
embedded `file.txt` file would use `/a/b/app.asar/file.txt` as the path.
7070

71+
## Globbing
72+
73+
`fs.statSync(process.execPath).isDirectory()` will return `false` and
74+
`fs.statSync(process.execPath).isFile()` will return `true`. That way, if code
75+
within the single-executable does naive globbing using an off-the-shelf glob
76+
library, VFS file paths, which are considered internal to the single-executable,
77+
would not interfere with the actual file paths.
78+
7179
## Cross-platform tooling
7280

7381
The tooling required for archiving / extracting files into / from the VFS must

0 commit comments

Comments
 (0)