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

Method truncate

lib/internal/fs/promises.js:255–257  ·  view source on GitHub ↗
(len = 0)

Source from the content-addressed store, hash-verified

253 }
254
255 truncate(len = 0) {
256 return fsCall(ftruncate, this, len);
257 }
258
259 utimes(atime, mtime) {
260 return fsCall(futimes, this, atime, mtime);

Callers 15

checkFilesFunction · 0.45
truncateFunction · 0.45
[kInitializeHistory]Method · 0.45
truncateFunction · 0.45
testTruncateFunction · 0.45

Calls 1

fsCallFunction · 0.85

Tested by

no test coverage detected