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

Method truncate

lib/internal/vfs/file_handle.js:712–714  ·  view source on GitHub ↗

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

(len)

Source from the content-addressed store, hash-verified

710 * @returns {Promise<void>}
711 */
712 async truncate(len) {
713 this.truncateSync(len);
714 }
715}
716
717module.exports = {

Callers 2

ftruncateFunction · 0.45
createVfsHandlersFunction · 0.45

Calls 1

truncateSyncMethod · 0.95

Tested by

no test coverage detected