1 |
|
2 | import * as fs from "fs";
|
3 | import { Exception } from '@microsoft.azure/tasks';
|
4 | export declare class PathNotFoundException extends Exception {
|
5 | exitCode: number;
|
6 | constructor(path: string, exitCode?: number);
|
7 | }
|
8 | export declare class PathIsNotFileException extends Exception {
|
9 | exitCode: number;
|
10 | constructor(path: string, exitCode?: number);
|
11 | }
|
12 | export declare class PathIsNotDirectoryException extends Exception {
|
13 | exitCode: number;
|
14 | constructor(path: string, exitCode?: number);
|
15 | }
|
16 | export declare class UnableToRemoveException extends Exception {
|
17 | exitCode: number;
|
18 | constructor(path: string, exitCode?: number);
|
19 | }
|
20 | export declare class UnableToMakeDirectoryException extends Exception {
|
21 | exitCode: number;
|
22 | constructor(path: string, exitCode?: number);
|
23 | }
|
24 | export declare const exists: (path: string | Buffer) => Promise<boolean>;
|
25 | export declare const readdir: (path: string | Buffer) => Promise<Array<string>>;
|
26 | export declare const close: (fd: number) => Promise<void>;
|
27 | export declare const writeFile: (filename: string, content: string) => Promise<void>;
|
28 | export declare const lstat: (path: string | Buffer) => Promise<fs.Stats>;
|
29 | export declare function mkdir(dirPath: string): Promise<void>;
|
30 | export declare function readFile(filename: string): Promise<string>;
|
31 | export declare function isDirectory(dirPath: string): Promise<boolean>;
|
32 | export declare function isFile(filePath: string): Promise<boolean>;
|
33 | export declare function rmdir(dirPath: string): Promise<void>;
|
34 | export declare function rmFile(filePath: string): Promise<void>;
|