Properties
mkdir
mkdir: ((path: string, opts: MakeDirectoryOptions & {
recursive?: boolean;
}, callback: ((err: null | ErrnoException, made?: string) => any)) => any)
Type declaration
-
- (path: string, opts: MakeDirectoryOptions & {
recursive?: boolean;
}, callback: ((err: null | ErrnoException, made?: string) => any)): any
-
Parameters
-
path: string
-
opts: MakeDirectoryOptions & {
recursive?: boolean;
}
-
callback: ((err: null | ErrnoException, made?: string) => any)
-
- (err: null | ErrnoException, made?: string): any
-
Parameters
-
err: null | ErrnoException
-
Optional
made: string
Returns any
Returns any
mkdirAsync
mkdirAsync: ((path: string, opts: MakeDirectoryOptions & {
recursive?: boolean;
}) => Promise<undefined | string>)
Type declaration
-
- (path: string, opts: MakeDirectoryOptions & {
recursive?: boolean;
}): Promise<undefined | string>
-
Parameters
-
path: string
-
opts: MakeDirectoryOptions & {
recursive?: boolean;
}
Returns Promise<undefined | string>
mkdirSync
mkdirSync: ((path: string, opts: MakeDirectoryOptions & {
recursive?: boolean;
}) => undefined | string)
Type declaration
-
- (path: string, opts: MakeDirectoryOptions & {
recursive?: boolean;
}): undefined | string
-
Parameters
-
path: string
-
opts: MakeDirectoryOptions & {
recursive?: boolean;
}
Returns undefined | string
Optional
recursive
recursive?: boolean
stat
stat: ((path: string, callback: ((err: null | ErrnoException, stats: Stats) => any)) => any)
Type declaration
-
- (path: string, callback: ((err: null | ErrnoException, stats: Stats) => any)): any
-
Parameters
-
path: string
-
callback: ((err: null | ErrnoException, stats: Stats) => any)
-
- (err: null | ErrnoException, stats: Stats): any
-
Parameters
-
err: null | ErrnoException
-
stats: Stats
Returns any
Returns any
statAsync
statAsync: ((path: string) => Promise<Stats>)
Type declaration
-
- (path: string): Promise<Stats>
-
Returns Promise<Stats>
statSync
statSync: ((path: string) => Stats)
Type declaration
-
- (path: string): Stats
-
Returns Stats