1 | import * as Globby from 'globby';
|
2 | export declare type Filepath = string | string[];
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | export declare function mkdirp(...filepaths: (string | string[])[]): Promise<void>;
|
8 | export declare namespace mkdirp {
|
9 | function sync(...filepaths: (string | string[])[]): void;
|
10 | }
|
11 |
|
12 |
|
13 |
|
14 | export declare function globby(patterns: string | string[], options?: Globby.GlobbyOptions): Promise<string[]>;
|
15 |
|
16 |
|
17 |
|
18 |
|
19 | export declare function write(filepaths: string | string[], data: any, options?: {}): Promise<void>;
|
20 |
|
21 |
|
22 |
|
23 | export declare function read(filepaths: string | string[], options?: {}): Promise<string>;
|
24 |
|
25 |
|
26 |
|
27 | export declare function ls(filepaths?: string | string[], options?: {
|
28 | fullpath?: boolean;
|
29 | }): Promise<string[]>;
|
30 | export declare function fileType(fp: string | string[]): Promise<'file' | 'directory' | 'symlink' | undefined>;
|
31 |
|
32 |
|
33 |
|
34 |
|
35 | export declare function cp(source: string | string[], destinationpaths: string | string[], options?: {}): Promise<void>;
|
36 |
|
37 |
|
38 |
|
39 | export declare function rm(...filesArray: (string | string[])[]): Promise<void>;
|
40 | export declare function rmIfEmpty(...filesArray: (string | string[])[]): Promise<void>;
|
41 | export declare function mv(source: string | string[], dest: string | string[]): Promise<void>;
|
42 | export declare function exists(filepath: string | string[]): Promise<boolean>;
|
43 | export declare namespace exists {
|
44 | function sync(filepath: string | string[]): boolean;
|
45 | }
|
46 | export declare function chmod(filepath: string | string[], mode: number): Promise<void>;
|
47 | export declare function ln(from: Filepath, to: Filepath): Promise<void>;
|
48 |
|
49 |
|
50 |
|
51 |
|
52 | export declare function tmpDir(): Promise<string>;
|
53 | export declare function emptyDir(filepath: string | string[]): Promise<void>;
|
54 | export declare function hash(algo: string, fp: string | string[]): Promise<string>;
|