Dir.prototype.closeSync - Node documentation
method Dir.prototype.closeSync

Usage

import { Dir } from "node:fs";

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

Return Type

void