StorageInterface
Direct Subclass:
Constructor Summary
| Public Constructor | ||
| public |
|
|
Member Summary
| Public Members | ||
| public |
|
|
Method Summary
| Public Methods | ||
| public |
deleteFileAsync(filename: string): Promise<void> Tries to delete a file |
|
| public |
initialize(): Promise<void> Initializes the storage |
|
| public |
readFileAsync(filename: string): Promise<string> Reads a string asynchronously. |
|
| public |
writeFileAsync(filename: string, contents: string): Promise<void> Writes a string to a file asynchronously |
|
| public |
writeFileSyncIfSupported(filename: string, contents: string): boolean Tries to write a file synchronously, used in unload handler |
|
Public Constructors
public constructor() source
Public Members
public app: Application source
Public Methods
public deleteFileAsync(filename: string): Promise<void> source
Tries to delete a file
Params:
| Name | Type | Attribute | Description |
| filename | string |
public readFileAsync(filename: string): Promise<string> source
Reads a string asynchronously. Returns Promise<FILE_NOT_FOUND> if file was not found.
Params:
| Name | Type | Attribute | Description |
| filename | string |
