Skip to main content
method Dir.prototype.close
Dir.prototype.close(): Promise<void>
Deprecated

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

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

Return Type

Promise<void>
Dir.prototype.close(cb: NoParamCallback): void
Deprecated

Parameters

Return Type

void
Back to top