fs.opendir(path[, options], callback)
-
options
<Object> -
callback
<Function>
异步地打开目录。有关更多详细信息,请参阅 POSIX opendir(3)
文档。
¥Asynchronously open a directory. See the POSIX opendir(3)
documentation for
more details.
创建 <fs.Dir>,其中包含用于从目录读取和清理目录的所有进一步的函数。
¥Creates an <fs.Dir>, which contains all further functions for reading from and cleaning up the directory.
encoding
选项设置在打开目录和随后的读取操作时 path
的编码。
¥The encoding
option sets the encoding for the path
while opening the
directory and subsequent read operations.