Synchronously open a directory. See opendir(3).
opendir(3)
Creates an fs.Dir, which contains all further functions for reading from and cleaning up the directory.
fs.Dir
The encoding option sets the encoding for the path while opening the directory and subsequent read operations.
encoding
path
v12.12.0
Optional
Synchronously open a directory. See
opendir(3)
.Creates an
fs.Dir
, which contains all further functions for reading from and cleaning up the directory.The
encoding
option sets the encoding for thepath
while opening the directory and subsequent read operations.Since
v12.12.0