Skip to content

fs

Contains utility functions for file system operations.

Function Description
readdirPosix Reads the contents of a directory and converts file paths or buffer results to POSIX format.
Type Description
BufferResultOptions Options for controlling the format of the result when returning buffers. directory is used instead of folder to preserve compatibility with node:fs module.
DirentResultOptions Options for controlling the format of the result when returning Dirent objects.
StringResultOptions Options for controlling the format of the result when returning strings.