FileSystem-1.0.0: File system data structure and monad transformer.

System.FileSystem.IO

Synopsis

Documentation

takeFile :: FilePath -> IO FileSource

Create a File from a FilePath to a "real world" file.

captureDir :: FilePath -> IO FileSystemSource

Create a complete FileSystem from an existing directory.

capture :: IO FileSystemSource

Create a complete FileSystem from the current working directory.

releaseEnd :: FilePath -> IO a -> FileSystem -> IO aSource

releaseEnd fp c fs write in fp the FileSystem fs, and execute c at the end.

release :: FilePath -> FileSystem -> IO ()Source

release fp fs write in fp the FileSystem fs.

releaseHere :: FileSystem -> IO ()Source

releaseHere fs write in the current working directory the FileSystem fs.