- Preparing search index...
- The search index is not available
movo
Accessors
group_id
- get group_id(): number
-
Returns number
Methods
Private
_feed
- _feed(fid: string, busid: number): Promise<GfsFileStat>
-
Parameters
-
fid: string
-
busid: number
Private
_resolve
- _resolve(fid: string): Promise<GfsFileStat>
-
df
- df(): Promise<{
free: number;
total: number;
used: number;
} & {
file_count: number;
max_file_count: number;
}>
-
Returns Promise<{
free: number;
total: number;
used: number;
} & {
file_count: number;
max_file_count: number;
}>
dir
- dir(pid?: string, start?: number, limit?: number): Promise<(GfsFileStat | GfsDirStat)[]>
-
Parameters
-
pid: string = '/'
-
start: number = 0
-
limit: number = 100
download
- download(fid: string): Promise<Omit<FileElem, "type"> & {
url: string;
}>
-
Returns Promise<Omit<FileElem, "type"> & {
url: string;
}>
forward
- forward(stat: GfsFileStat, pid?: string, name?: string): Promise<GfsFileStat>
-
Parameters
-
-
pid: string = '/'
-
Optional
name: string
ls
- ls(pid?: string, start?: number, limit?: number): Promise<(GfsFileStat | GfsDirStat)[]>
-
Parameters
-
pid: string = '/'
-
start: number = 0
-
limit: number = 100
mkdir
- mkdir(name: string): Promise<GfsDirStat>
-
mv
- mv(fid: string, pid: string): Promise<void>
-
Returns Promise<void>
rename
- rename(fid: string, name: string): Promise<void>
-
Returns Promise<void>
rm
- rm(fid: string): Promise<void>
-
Returns Promise<void>
upload
- upload(file: string | Buffer | Uint8Array, pid?: string, name?: string, callback?: ((percentage: string) => void)): Promise<GfsFileStat>
-
Parameters
-
file: string | Buffer | Uint8Array
-
pid: string = '/'
-
Optional
name: string
-
Optional
callback: ((percentage: string) => void)
-
- (percentage: string): void
-
Returns void
群文件系统 fid 表示一个文件或目录的 id, pid 表示它所在目录的 id 根目录的 id 为 "/" 只能在根目录下创建目录 删除一个目录会删除下面的全部文本