-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f6b6135
commit 4016d7f
Showing
2 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/// <reference types="node" /> | ||
|
||
import { Stats } from 'fs'; | ||
import { Mode } from 'stat-mode'; | ||
|
||
export const readLink: (currentPath: string) => Promise<string | Buffer>; | ||
export const readdir: (dir: string) => Promise<Stats[]>; | ||
/** Read a single directory or file the [stat](http://nodejs.cn/api/fs.html#fs_class_fs_stats) info. */ | ||
export const getStat: (dirOrFile: string) => Promise<Stats>; | ||
/** Get all the file names in the directory. */ | ||
export const readdirAsync: (directory: string) => Promise<string[]>; | ||
export const uidToName: (id?: string) => Promise<string | Record<string, string>[]>; | ||
export const chmod: (file: string, mode: number | Mode) => Promise<null>; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters