def publish.tmp

cswap-bend-cli@0.1.0.0 · fs/write.bend:76

import cswap-bend-cli@0.1.0.0/fs/write.bend as Write
import Base
import cswap-bend-cli@0.1.0.0/fs.bend as Fs

76def publish.tmp(r: Fs.Res(U32), +path: String, +data: String, +mode: String) -> IO(Fs.Res(Unit)):
77  match r:
78    case Fail{e}:
79      IO.pure(Fs.Res(Unit), Fail{e})
80    case Done{n}:
81      publish.create(path ++ ".tmp-" ++ U32.show(n), path, data, mode)

Uses (10)

Used by (1)