listDir : Path -> Result FileError (List Path) with FileRead
List the entries of a directory (names only, sorted), as paths joined under the directory. listDir (path "src") is Ok [path "src/A.oppi", …].
import System.DirectorylistDir : Path -> Result FileError (List Path) with FileReadcreateDir : Path -> Result FileError () with FileWritecreateDirAll : Path -> Result FileError () with FileWriteremoveFile : Path -> Result FileError () with FileWriteremoveDir : Path -> Result FileError () with FileWriteremoveDirAll : Path -> Result FileError () with FileWriterename : Path -> Path -> Result FileError () with FileWritecopyFile : Path -> Path -> Result FileError () with FSlistDir : Path -> Result FileError (List Path) with FileRead
List the entries of a directory (names only, sorted), as paths joined under the directory. listDir (path "src") is Ok [path "src/A.oppi", …].
createDir : Path -> Result FileError () with FileWrite
Create a directory. Fails if it already exists or its parent is missing.
createDirAll : Path -> Result FileError () with FileWrite
Create a directory and any missing parents (like mkdir -p).
removeFile : Path -> Result FileError () with FileWrite
Remove a file.
removeDir : Path -> Result FileError () with FileWrite
Remove an (empty) directory.
removeDirAll : Path -> Result FileError () with FileWrite
Remove a directory and everything inside it, recursively (like rm -rf). Used by System.Temp.withTempDir for guaranteed cleanup.
rename : Path -> Path -> Result FileError () with FileWrite
Rename (move) a path from the first location to the second.
copyFile : Path -> Path -> Result FileError () with FS
Copy a file from the first path to the second.