|
Filedata File A file or a directory. Corresponds to file :: String -> File Constructs a file from the given path name. fileExists :: File -> <Proc> Boolean Returns childFile :: File -> String -> File
copyFile :: File -> File -> <Proc> ()
createFile :: File -> <Proc> () Creates a new empty file if a file with the same name does not yet exist. createTempDirectory :: String -> Maybe File -> <Proc> File
createTempFile :: String -> String -> Maybe File -> <Proc> File
cwd :: File -> String The absolute path name of the file. deleteFile :: File -> <Proc> () Deletes the file, or the directory if it is empty. deleteFileOnExit :: File -> <Proc> () Requests that the file is deleted when the virtual machine terminates. isDirectory :: File -> <Proc> Boolean Returns isFile :: File -> <Proc> Boolean Returns listFiles :: File -> <Proc> Vector File The files and the directories of the given directory. Empty if the given file is not a directory. makeDirs :: File -> <Proc> Boolean Creates the directory, creating also all missing parent directories. Returns moveFile :: File -> File -> <Proc> ()
parentFile :: File -> String The path name of the directory containing the file, or pathOfFile :: File -> String The path name of the file as it was given when the file was constructed. pwd :: () -> String The absolute path name of the current working directory. sizeOfFile :: File -> <Proc> Long The size of the file in bytes, or zero if the file does not exist. syncFile :: File -> <Proc> () Forces all system buffers of the given file to be written to the underlying storage. |