Node fs.opendir function | API Reference | Bun
BuildDocsReferenceGuidesBlogDiscord/
node:fs/
opendirNopendir
Search the reference...
/
BuildDocsReferenceGuidesBlogDiscord/
node:fs/
opendirNopendir
namespace
fs.opendirfunction
opendir(path:
PathLike,cb: (err: null | ErrnoException, dir:
Dir) => void): void;
Asynchronously open a directory. See the POSIX opendir(3) documentation for more details.
Creates an fs.Dir, which contains all further functions for reading from and cleaning up the directory.
The encoding option sets the encoding for the path while opening the directory and subsequent read operations.
function
opendir(path:
PathLike,options:
OpenDirOptions,cb: (err: null | ErrnoException, dir:
Dir) => void): void;
Asynchronously open a directory. See the POSIX opendir(3) documentation for more details.
Creates an fs.Dir, which contains all further functions for reading from and cleaning up the directory.
The encoding option sets the encoding for the path while opening the directory and subsequent read operations.
namespace
opendirResources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlog Toolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →