def truncate

bend-kit-journal@0.3.1.0 · journal.bend:301

import bend-kit-journal@0.3.1.0/journal.bend as Journal
import Base

301# Cuts file to len octets, then fsyncs it.
302def truncate(file: File, len: U32) -> IO(File & Result<&1, &1, U32 & String, Unit>):
303  import "./effs/journal.c"
304  import "./effs/journal.js"

Uses (7)

Used by (1)