MCPcopy Create free account
hub / github.com/nodejs/node / truncateSync

Method truncateSync

lib/internal/vfs/file_handle.js:234–237  ·  view source on GitHub ↗

* Truncates the file synchronously. * @param {number} [len] The new length

(len)

Source from the content-addressed store, hash-verified

232 * @param {number} [len] The new length
233 */
234 truncateSync(len) {
235 this.#checkClosed('ftruncate');
236 throw new ERR_METHOD_NOT_IMPLEMENTED('truncateSync');
237 }
238
239 /**
240 * No-op chmod - VFS files don't have real permissions.

Callers

nothing calls this directly

Calls 1

#checkClosedMethod · 0.95

Tested by

no test coverage detected