Skip to main content
Dir.prototype.close - node__fs.d.ts - Node documentation
method Dir.prototype.close

Usage in Deno

```typescript import { Dir } from "node:node__fs.d.ts"; ```
Dir.prototype.close(): Promise<void>
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

Parameters

Return Type

void