Documentation

Lake.Util.IO

Creates any missing parent directories of path.

Equations
Instances For

    Remove the file at path if it exists.

    Equations
    Instances For

      Write the UTF-8 encoded string content to path. If the file already exists, does nothing.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For

        Write the bytes of content to path. If the file already exists, does nothing.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For

          Produces a file at path with its full content in one atomic operation. To do so, it writes the content to .part.tmp file and then renames it to the destination. If the file already exists, it will be left as-is.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For

            Remove a directory and all its contents. Like IO.FS.removeDirAll, but does not fail if path does not exist or if a file is first deleted by a racing process.

            Copy a file from src to dst.

            Equations
            Instances For
              partial def Lake.copyDirAll (src dst : System.FilePath) :

              Copy a directory and all its contents from src to dst.

              Returns the normalized real path of a file if it exists. Otherwise, returns "".

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                @[inline]

                Returns the normalized real path of a file if and only if it exists.

                Equations
                Instances For