Root namespace for filesystem specifics
- Since:
-
- 0.1.9
Members
-
<static, readonly> openFor :enum
-
File system open mode enumeration
Type:
- enum
- Since:
-
- 0.1.9
Properties:
Name Type Description readingenum Read as a IReadableStream from the beginning of the file
appendingenum Append as a IWritableStream to the end of the file. NOTE: if you want to overwrite a file, delete it first
-
<static, readonly> types :enum
-
File system object type enumeration
Type:
- enum
- Since:
-
- 0.1.9
Properties:
Name Type Description notFoundenum Storage path does not exist
directoryenum Storage path points to a container of files
fileenum Storage path points to a stream-able file
unknownenum Storage path points to an object but it can't be handled
Methods
-
<static> getFileStorage()
-
Get the current host file storage (null if none)
- Since:
-
- 0.1.9
Returns:
IFileStorage interface
- Type
- gpf.interfaces.IFileStorage | null
-
<static> read(path)
-
Generic read method
Parameters:
Name Type Description pathString File path
- Since:
-
- 0.2.2
- Deprecated:
-
- since version 0.2.6, use gpf.read instead
Returns:
Resolved with the file content
- Type
- Promise.<String>