mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
New BCL approach & BuildTasks
This commit is contained in:
28
FileSystem/file_system_access.d.ts
vendored
Normal file
28
FileSystem/file_system_access.d.ts
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
//import file_system_module = require("FileSystem/file_system");
|
||||
//import entities = file_system_module.tk.io;
|
||||
|
||||
//@hidden
|
||||
export declare module tk {
|
||||
export module io {
|
||||
export class FileSystemAccess {
|
||||
getReadonly(path: string): boolean;
|
||||
getLastModified(path: string): Date;
|
||||
|
||||
getParent(path: string, onSuccess: (path: string) => any, onError?: (error: any) => any);
|
||||
getFile(path: string, onSuccess: (path: string) => any, onError?: (error: any) => any);
|
||||
getFolder(path: string, onSuccess: (path: string) => any, onError?: (error: any) => any);
|
||||
enumFiles(path: string, onSuccess: (files: Array<string>) => any, onError?: (error: any) => any);
|
||||
fileExists(path: string): boolean;
|
||||
folderExists(path: string): boolean;
|
||||
concatPath(left: string, right: string): string;
|
||||
deleteFile(path: string, onSuccess?: () => any, onError?: (error: any) => any);
|
||||
deleteFolder(path: string, isKnown: boolean, onSuccess?: () => any, onError?: (error: any) => any);
|
||||
emptyFolder(path: string, onSuccess?: () => any, onError?: (error: any) => any): void;
|
||||
rename(path: string, onSuccess?: () => any, onError?: (error: any) => any): void;
|
||||
getDocumentsFolderPath(): string;
|
||||
getTempFolderPath(): string;
|
||||
readText(path: string, onSuccess: (content: string) => any, onError?: (error: any) => any);
|
||||
writeText(path: string, content: string, onSuccess?: () => any, onError?: (error: any) => any);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user