FR
importPour l'utiliser : import System.Directory

System.Directory — listing and managing directories

Synopsis
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", …].

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).

rename : Path -> Path -> Result FileError () with FileWrite

Rename (move) a path from the first location to the second.