Skip to content

QueryFileInfo

Query detailed information of a file, commonly used to distinguish between file and directory, can be determined through returned data (data.isDirectory()).

API

Return

  • Promise
ParameterDescriptionTypeDescription
successWhether check was successfulbooleantrue for success, false for failure
dataFile information, or reason for errorStats

Options

ParameterDescriptionTypeDefault
pathFile path to checkstringundefined

Example

Released under the MIT License.