ListDir(path, itemType)
⇒ Array.<string>
ReadFile(path)
⇒ Uint8Array
ReadFileAsString(path)
⇒ string
ReadFilesFromDir(dir)
⇒ Array.<string>
Array.<string>
fs
Array.<string>
- - The list of files and directories.error
- The error encountered during listing.Param | Type | Description |
---|---|---|
path | string | The path to list files and directories from. |
itemType | string | The type of items to list. Can be ‘file’, ‘dir’, or ‘all’. |
Uint8Array
fs
Uint8Array
- - The contents of the file.error
- The error encountered during reading.Param | Type | Description |
---|---|---|
path | string | The path to the file to read. |
string
fs
string
- - The contents of the file as a string.error
- The error encountered during reading.Param | Type | Description |
---|---|---|
path | string | The path to the file to read. |
Array.<string>
fs
Array.<string>
- - The contents of all files in the directory.error
- The error encountered during reading.Param | Type | Description |
---|---|---|
dir | string | The directory to read files from. |