McloseSync
Bun

method

fs.Dir.closeSync

closeSync(): void;

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