listDir : Path -> Result FileError (List Path) with FileRead
Liste les entrées d'un répertoire (noms seuls, triés), sous forme de chemins joints sous le répertoire. listDir (path "src") vaut 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
Liste les entrées d'un répertoire (noms seuls, triés), sous forme de chemins joints sous le répertoire. listDir (path "src") vaut Ok [path "src/A.oppi", …].
createDir : Path -> Result FileError () with FileWrite
Crée un répertoire. Échoue s'il existe déjà ou si son parent est absent.
createDirAll : Path -> Result FileError () with FileWrite
Crée un répertoire et tous les parents manquants (comme mkdir -p).
removeFile : Path -> Result FileError () with FileWrite
Supprime un fichier.
removeDir : Path -> Result FileError () with FileWrite
Supprime un répertoire (vide).
removeDirAll : Path -> Result FileError () with FileWrite
Supprime un répertoire et tout son contenu, récursivement (comme rm -rf). Utilisé par System.Temp.withTempDir pour un nettoyage garanti.
rename : Path -> Path -> Result FileError () with FileWrite
Renomme (déplace) un chemin du premier emplacement vers le second.
copyFile : Path -> Path -> Result FileError () with FS
Copie un fichier du premier chemin vers le second.