FileSystem
defaultEncoding : Node.Encoding.EncodingDefault encoding (Utf8).
defaultMode : Node.FileSystem.ModeDefault mode (Read and Write access for Owner, Group, and Others).
type alias Stats =
{ type_ : Node.FileSystem.FileType , size : Int , mode : Node.FileSystem.Mode , accessed : Time , modified : Time , changed : Time , created : Time }Path statistics.
type FileType
= File
| Directory
| Socket
| SymbolicLink Path types.
exists : String -> Task Node.Error.Error BoolCheck whether a path exists.
statistics : String -> Task Node.Error.Error Node.FileSystem.StatsGet statistics for a given path.
copy : Bool -> String -> String -> Task Node.Error.Error (Dict String (Result Node.Error.Error ()))Copy a file or directory recursively.
mkdirp : String -> Task Node.Error.Error ()Make a directory using the given directory name.
Non-existent directories in the path will be created.
remove : String -> Task Node.Error.Error ()Remove a file or directory recursively.
rename : String -> String -> Task Node.Error.Error ()Rename a file.
symbolicLink : String -> String -> Task Node.Error.Error ()Make a symbolic link.
readFile : String -> Task Node.Error.Error Node.Buffer.BufferRead a file as a Buffer.
readFileAsString : String -> Node.Encoding.Encoding -> Task Node.Error.Error StringRead a file as a string.
writeFile : String -> Node.FileSystem.Mode -> Node.Buffer.Buffer -> Task Node.Error.Error ()Write a file from a Buffer.
Non-existent directories in the filename path will be created.
writeFileFromString : String -> Node.FileSystem.Mode -> Node.Encoding.Encoding -> String -> Task Node.Error.Error ()Write a file from a String.
Non-existent directories in the file's path will be created.