1 | import { RepoRef } from "../../operations/common/RepoId";
|
2 | import { File } from "../File";
|
3 | import { FileStream, Project } from "../Project";
|
4 | import { AbstractProject } from "../support/AbstractProject";
|
5 | import { LocalProject, ReleaseFunction } from "./LocalProject";
|
6 | export declare class NodeFsLocalProject extends AbstractProject implements LocalProject {
|
7 | private cleanup;
|
8 | |
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | static fromExistingDirectory(id: RepoRef, baseDir: string, cleanup?: ReleaseFunction): Promise<LocalProject>;
|
16 | |
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 | static copy(other: Project, baseDir: string, cleanup?: ReleaseFunction): Promise<LocalProject>;
|
25 | |
26 |
|
27 |
|
28 | readonly baseDir: string;
|
29 | |
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 | constructor(ident: RepoRef | string, baseDir: string, cleanup?: ReleaseFunction);
|
37 | release(): Promise<void>;
|
38 | addFileSync(path: string, content: string): void;
|
39 | addFile(path: string, content: string): Promise<this>;
|
40 | addDirectory(path: string): Promise<this>;
|
41 | deleteDirectory(path: string): Promise<this>;
|
42 | deleteDirectorySync(path: string): void;
|
43 | deleteFileSync(path: string): void;
|
44 | deleteFile(path: string): Promise<this>;
|
45 | makeExecutable(path: string): Promise<this>;
|
46 | makeExecutableSync(path: string): void;
|
47 | directoryExistsSync(path: string): boolean;
|
48 | fileExistsSync(path: string): boolean;
|
49 | findFile(path: string): Promise<File>;
|
50 | getFile(path: string): Promise<File>;
|
51 | findFileSync(path: string): File;
|
52 | streamFilesRaw(globPatterns: string[], opts: {}): FileStream;
|
53 | private toRealPath;
|
54 | }
|
55 | //# sourceMappingURL=NodeFsLocalProject.d.ts.map |
\ | No newline at end of file |