Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
checkFiles
Function · 0.45
truncate
Function · 0.45
[kInitializeHistory]
Method · 0.45
truncate
Function · 0.45
test-vfs-real-provider-handle.js
File · 0.45
test-vfs-fs-promises.js
File · 0.45
test-vfs-memory-provider.js
File · 0.45
test-vfs-fs-truncate-callback.js
File · 0.45
testTruncate
Function · 0.45
test-fs-truncate.js
File · 0.45
test-vfs-file-handle.js
File · 0.45
test-vfs-promises.js
File · 0.45
Calls
1
fsCall
Function · 0.85
Tested by
no test coverage detected