Methods
copy
- copy(from: string, dest: string): Promise<any>
-
Parameters
-
from: string
-
dest: string
Returns Promise<any>
createDirectory
- createDirectory(path: string): Promise<any>
-
Returns Promise<any>
delete
- delete(path: string, recursive: boolean): Promise<any>
-
Parameters
-
path: string
-
recursive: boolean
Returns Promise<any>
enumerate
- enumerate(path: string, searchPattern: string, searchInSubDirectories: boolean): Promise<FileDescription[]>
-
Parameters
-
path: string
-
searchPattern: string
-
searchInSubDirectories: boolean
exists
- exists(path: string): boolean
-
Returns boolean
getFileIcon
- getFileIcon(fileEndingOrPath: string, size?: number): Promise<string>
-
Parameters
-
fileEndingOrPath: string
-
Optional
size: number
Returns Promise<string>
isDirectory
- isDirectory(path: string): boolean
-
Returns boolean
isFile
- isFile(path: string): boolean
-
Returns boolean
move
- move(from: string, dest: string): Promise<any>
-
Parameters
-
from: string
-
dest: string
Returns Promise<any>
readFile
- readFile(filePath: string, offset?: number, count?: number): Promise<Uint8Array>
-
Parameters
-
filePath: string
-
Optional
offset: number
-
Optional
count: number
Returns Promise<Uint8Array>
readTextFile
- readTextFile(filePath: string): Promise<string>
-
Returns Promise<string>
writeFile
- writeFile(filePath: string, contents: Uint8Array): Promise<any>
-
Parameters
-
filePath: string
-
contents: Uint8Array
Returns Promise<any>
writeTextFile
- writeTextFile(filePath: string, contents: string): Promise<any>
-
Parameters
-
filePath: string
-
contents: string
Returns Promise<any>
siteKiosk.fileSystem