ContentsIndex
Helpers.FileIO
Description
this module contains file IO functionality
Synopsis
dataBaseDir :: FilePath
filter_dot_dirs :: [FilePath] -> [FilePath]
get_file_date :: FilePath -> IO String
read_file :: FilePath -> IO ByteString
retrieve_directory_contents :: FilePath -> IO [FilePath]
try_read_file :: FilePath -> IO (Maybe ByteString)
Documentation
dataBaseDir :: FilePath
filter_dot_dirs :: [FilePath] -> [FilePath]
filter the .. and . directories from a list of paths
get_file_date :: FilePath -> IO String
return the modification time of a file as a string of the form mm-dd-yy-hh-mm
read_file :: FilePath -> IO ByteString
open the given file. If things fail try to detect why and provide the user with some sort of useful error message (generic one otherwise); then quit
retrieve_directory_contents :: FilePath -> IO [FilePath]
returns a list of the content of dir sans .. and .
try_read_file :: FilePath -> IO (Maybe ByteString)
try to open the given file and return the content as a Just ByteString if it exists and Nothing otherwise
Produced by Haddock version 2.4.2