dir.close()


异步地关闭目录的底层资源句柄。后续读取将导致错误。

¥Asynchronously close the directory's underlying resource handle. Subsequent reads will result in errors.

返回一个 promise,该 promise 将在资源关闭后履行。

¥A promise is returned that will be fulfilled after the resource has been closed.