MCPcopy Index your code
hub / github.com/nodejs/node / #close

Method #close

lib/internal/vfs/streams.js:326–335  ·  view source on GitHub ↗

* Closes the file descriptor.

()

Source from the content-addressed store, hash-verified

324 * Closes the file descriptor.
325 */
326 #close() {
327 if (this.#fd !== null) {
328 try {
329 this.#vfs.closeSync(this.#fd);
330 } catch {
331 // Ignore close errors
332 }
333 this.#fd = null;
334 }
335 }
336
337 /**
338 * Implements the writable _destroy method.

Callers 1

_destroyMethod · 0.95

Calls 1

closeSyncMethod · 0.45

Tested by

no test coverage detected