def mkdir_all

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

import bend-kit-files@0.3.1.0/files.bend as Files
import Base

301# Creates the directory and any missing parents. Succeeds when it is
302# already a directory; fails if a component is not a directory.
303def mkdir_all(+path: String) -> IO(Result<&1, &1, U32 & String, Unit>):
304  mkdir_all.go(
305    List.filter(~String, ~(n => Bool.not(String.eq(n, ""))),
306      String.split(path, '/')),
307    Bool.pick(String, path.is_absolute(path), "/", "."))

Uses (14)

Used by (0)

No other definition uses this definition.