Skip to content

ReadDir

Read all files in a directory.

API

Return

  • Promise
ParameterDescriptionTypeDescription
resultArray of all files in directoryarrayArray of file paths

Options

ParameterDescriptionTypeDefault
optionsobjectRequired
dirPathDirectory pathstringRequired

Example

Released under the MIT License.