dir.close()


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

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

A Promise is returned that will be resolved after the resource has been closed.