MCPcopy Index your code
hub / github.com/nodejs/node / truncateSync

Method truncateSync

lib/internal/vfs/providers/real.js:115–118  ·  view source on GitHub ↗
(len = 0)

Source from the content-addressed store, hash-verified

113 }
114
115 truncateSync(len = 0) {
116 this.#checkClosed('ftruncate');
117 fs.ftruncateSync(this.#fd, len);
118 }
119
120 async truncate(len = 0) {
121 this.#checkClosed('ftruncate');

Callers

nothing calls this directly

Calls 2

#checkClosedMethod · 0.95
ftruncateSyncMethod · 0.80

Tested by

no test coverage detected