def exists
import cswap-bend-cli@0.1.0.0/fs.bend as Fsimport Base
92# Does the path exist (a file, directory or the target of a symlink)?
93def exists(path: String) -> IO(Bool):
94 IO.bind(Result<&1, &1, U32 & String, U32 & (String & String)>, Bool,
95 Process.run("/bin/test", ["-e", path], "", proc.max(), proc.timeout()),
96 r => IO.pure(Bool, exists.of(r)))