1 | export declare class FileSystemAccess {
|
2 | getLastModified(path: string): Date;
|
3 | getFileSize(path: string): number;
|
4 | getParent(path: string, onError?: (error: any) => any): {
|
5 | path: string;
|
6 | name: string;
|
7 | };
|
8 | getFile(path: string, onError?: (error: any) => any): {
|
9 | path: string;
|
10 | name: string;
|
11 | extension: string;
|
12 | };
|
13 | getFolder(path: string, onError?: (error: any) => any): {
|
14 | path: string;
|
15 | name: string;
|
16 | };
|
17 | getExistingFolder(path: string, onError?: (error: any) => any): {
|
18 | path: string;
|
19 | name: string;
|
20 | };
|
21 | eachEntity(path: string, onEntity: (file: {
|
22 | path: string;
|
23 | name: string;
|
24 | extension: string;
|
25 | }) => any, onError?: (error: any) => any): void;
|
26 | getEntities(path: string, onError?: (error: any) => any): Array<{
|
27 | path: string;
|
28 | name: string;
|
29 | extension: string;
|
30 | }>;
|
31 | fileExists(path: string): boolean;
|
32 | folderExists(path: string): boolean;
|
33 | private exists;
|
34 | concatPath(left: string, right: string): string;
|
35 | deleteFile(path: string, onError?: (error: any) => any): void;
|
36 | deleteFolder(path: string, onError?: (error: any) => any): void;
|
37 | emptyFolder(path: string, onError?: (error: any) => any): void;
|
38 | rename(path: string, newPath: string, onError?: (error: any) => any): void;
|
39 | getLogicalRootPath(): string;
|
40 | getDocumentsFolderPath(): string;
|
41 | getExternalDocumentsFolderPath(): string;
|
42 | getTempFolderPath(): string;
|
43 | getCurrentAppPath(): string;
|
44 | copy: any;
|
45 | copySync(src: string, dest: string, onError?: (error: any) => any): boolean;
|
46 | copyAsync(src: string, dest: string): Promise<boolean>;
|
47 | readText: any;
|
48 | readTextAsync(path: string, encoding?: any): Promise<string>;
|
49 | readTextSync(path: string, onError?: (error: any) => any, encoding?: any): string;
|
50 | readBuffer: any;
|
51 | readBufferAsync(path: string): Promise<ArrayBuffer>;
|
52 | readBufferSync(path: string, onError?: (error: any) => any): ArrayBuffer;
|
53 | read: any;
|
54 | readAsync(path: string): Promise<NSData>;
|
55 | readSync(path: string, onError?: (error: any) => any): NSData;
|
56 | writeText: any;
|
57 | writeTextAsync(path: string, content: string, encoding?: any): Promise<void>;
|
58 | writeTextSync(path: string, content: string, onError?: (error: any) => any, encoding?: any): void;
|
59 | static getBuffer(buffer: ArrayBuffer | Uint8Array | Uint8ClampedArray): NSData;
|
60 | appendBuffer: any;
|
61 | appendBufferAsync(path: string, content: ArrayBuffer | Uint8Array | Uint8ClampedArray): Promise<void>;
|
62 | appendBufferSync(path: string, content: ArrayBuffer | Uint8Array | Uint8ClampedArray, onError?: (error: any) => any): void;
|
63 | append: any;
|
64 | appendAsync(path: string, content: NSData): Promise<void>;
|
65 | appendSync(path: string, content: NSData, onError?: (error: any) => any): void;
|
66 | appendText: any;
|
67 | appendTextAsync(path: string, content: string, encoding?: any): Promise<void>;
|
68 | appendTextSync(path: string, content: string, onError?: (error: any) => any, encoding?: any): void;
|
69 | writeBuffer: any;
|
70 | writeBufferAsync(path: string, content: ArrayBuffer | Uint8Array | Uint8ClampedArray): Promise<void>;
|
71 | writeBufferSync(path: string, content: ArrayBuffer | Uint8Array | Uint8ClampedArray, onError?: (error: any) => any): void;
|
72 | write: any;
|
73 | writeAsync(path: string, content: NSData): Promise<void>;
|
74 | writeSync(path: string, content: NSData, onError?: (error: any) => any): void;
|
75 | private getKnownPath;
|
76 | getFileExtension(path: string): string;
|
77 | private deleteEntity;
|
78 | private enumEntities;
|
79 | getPathSeparator(): string;
|
80 | normalizePath(path: string): string;
|
81 | joinPath(left: string, right: string): string;
|
82 | joinPaths(paths: string[]): string;
|
83 | }
|
84 | export declare class FileSystemAccess29 extends FileSystemAccess {
|
85 | }
|