PromiseFileSystem
Static Method Summary
Static Public Methods | ||
public static |
Reads a file from the filesystem (from the given directory) |
|
public static |
writeFile(filename: *, data: *): * |
Static Private Methods | ||
private static |
_ensureExists(path: *, cb: *): * |
|
private static |
_getFullFilename(filename: *): * |
Static Public Methods
public static readFile(filename: string): Promise source
Reads a file from the filesystem (from the given directory)
Params:
Name | Type | Attribute | Description |
filename | string | file to read |
public static writeFile(filename: *, data: *): * source
Params:
Name | Type | Attribute | Description |
filename | * | ||
data | * |
Return:
* |
Static Private Methods
private static _ensureExists(path: *, cb: *): * source
Params:
Name | Type | Attribute | Description |
path | * | ||
cb | * |
Return:
* |
private static _getFullFilename(filename: *): * source
Params:
Name | Type | Attribute | Description |
filename | * |
Return:
* |