@io-arc/file-list
Get the file list.
#
Usageindex.ts
#
FunctionsFileListObject(dir, ext[, rootOnly])
#
Return: {[key: string]: string}
Get a list of files as an object recursively by specifying the directory and extension. The key name of the object will be the file name.
Parameters
params | type | default | description |
---|---|---|---|
dir | string | - | Target directory name |
ext | string | - | Extension name |
rootOnly (optional) | boolean | false | Only files directly under the specified directory |
example
Directory