MCPcopy Create free account
hub / github.com/Effect-TS/effect / truncate

Function truncate

packages/platform/deno/src/DenoFileSystem.ts:387–388  ·  view source on GitHub ↗
(path, length)

Source from the content-addressed store, hash-verified

385 tryPromise("symlink", target, () => Deno.symlink(target, path))
386
387const truncate: FileSystem.FileSystem["truncate"] = (path, length) =>
388 tryPromise("truncate", path, () => Deno.truncate(path, length === undefined ? undefined : Number(length)))
389
390const utimes: FileSystem.FileSystem["utimes"] = (path, atime, mtime) =>
391 tryPromise("utimes", path, () => Deno.utime(path, atime, mtime))

Callers

nothing calls this directly

Calls 3

tryPromiseFunction · 0.70
NumberInterface · 0.50
truncateMethod · 0.45

Tested by

no test coverage detected