|
|
|
Description |
Some extra operations on files. The functions here generally
return (Right ()) on success, Left [messages] on failure, and throw
an exception when a failure leaves things in an inconsistant state.
An example of an inconsistant state would be if we got a failure
when writing out a file, but were unable to restore the original
file to its original position.
|
|
Synopsis |
|
|
|
Documentation |
|
|
Return the list of subdirectories, omitting . and .. and ignoring
symbolic links.
|
|
|
Change a file's name, removing any existing file with the new name.
|
|
|
Change a file's name only if the new name doesn't exist.
|
|
|
Delete a file if it exists
|
|
|
Atomically install a list of files. Returns a list of what went
wrong on failure. Will throw an error if it fails and is unable to
restore the original files to their original states.
|
|
|
Write out three versions of a file, regular, gzipped, and bzip2ed.
|
|
|
Write out three versions of a file, regular, gzipped, and bzip2ed.
This new version assumes the files are written to temporary locations,
so any existing file there can be removed.
|
|
|
|
|
Like writeFile, but if the file already exists don't touch it.
Example: writeFileIfMissing True "/var/lib/dpkg/status" ""
|
|
|
Write a file if its content is different from the given text.
|
|
|
Add-on for System.Posix.Files
|
|
|
|
|
like removeLink, but does not fail if link did not exist
|
|
|
|
Produced by Haddock version 2.6.0 |