tangled
alpha
login
or
join now
notnite.com
/
moonlight
3
fork
atom
this repo has no description
3
fork
atom
overview
issues
pulls
pipelines
MoonlightFS: Add isDir API
notnite.com
1 year ago
802c6417
9faf6229
+7
3 changed files
expand all
collapse all
unified
split
packages
browser
src
index.ts
core
src
fs.ts
types
src
fs.ts
+3
packages/browser/src/index.ts
···
79
79
async isFile(path) {
80
80
return (await fs.stat(path)).isFile();
81
81
},
82
82
+
async isDir(path) {
83
83
+
return (await fs.stat(path)).isDirectory();
84
84
+
},
82
85
83
86
join(...parts) {
84
87
let str = parts.join("/");
+3
packages/core/src/fs.ts
···
39
39
async isFile(path) {
40
40
return fs.statSync(path).isFile();
41
41
},
42
42
+
async isDir(path) {
43
43
+
return fs.statSync(path).isDirectory();
44
44
+
},
42
45
43
46
join(...parts) {
44
47
return path.join(...parts);
+1
packages/types/src/fs.ts
···
11
11
12
12
exists: (path: string) => Promise<boolean>;
13
13
isFile: (path: string) => Promise<boolean>;
14
14
+
isDir: (path: string) => Promise<boolean>;
14
15
15
16
join: (...parts: string[]) => string;
16
17
dirname: (path: string) => string;