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

Function ftruncate

lib/internal/vfs/setup.js:434–438  ·  view source on GitHub ↗
(fd, len)

Source from the content-addressed store, hash-verified

432 return vfd.entry.stat(options);
433 },
434 ftruncate(fd, len) {
435 const vfd = getVirtualFd(fd);
436 if (!vfd) return undefined;
437 return vfd.entry.truncate(len).then(() => true);
438 },
439 fchmod: noopFd,
440 fchown: noopFd,
441 futimes: noopFd,

Callers

nothing calls this directly

Calls 3

getVirtualFdFunction · 0.85
thenMethod · 0.45
truncateMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…