← all modules

Sky.Core.File

Sky.Core.File
  Sky.Core.File — filesystem I/O (Layer 3 Sky source).

Values
  append : String -> String -> Task Error ()
      `append path content` — appends to the end of the file
  copy : String -> String -> Task Error ()
  exists : String -> Task Error Bool
  isDir : String -> Task Error Bool
  mkdirAll : String -> Task Error ()
      `mkdirAll path` — like `mkdir -p`.  Creates every intermediate
  readDir : String -> Task Error (List String)
  readFile : String -> Task Error String
  readFileBytes : String -> Task Error (List Int)
      Read raw bytes as a list of Int.  Use for binary content
  readFileLimit : String -> Int -> Task Error String
      `readFileLimit path maxBytes` — read at most `maxBytes` from
  remove : String -> Task Error ()
  rename : String -> String -> Task Error ()
  tempDir : String -> Task Error String
      `tempDir prefix` — create a uniquely-named directory in the
  tempFile : String -> Task Error String
      `tempFile prefix` — create a uniquely-named file in the system
  writeFile : String -> String -> Task Error ()
      `writeFile path content` — overwrites the file.