A module containing various file utility functions
- makeDirectories :: FilePath -> IO ()
- getRecursiveContents :: Bool -> FilePath -> IO [FilePath]
- isFileObsolete :: FilePath -> [FilePath] -> IO Bool
- isFileInternal :: HakyllConfiguration -> FilePath -> Bool
Documentation
makeDirectories :: FilePath -> IO ()Source
Given a path to a file, try to make the path writable by making all directories on the path.
Get all contents of a directory. Note that files starting with a dot (.) will be ignored.
Check if a file is obsolete, given it's dependencies. When the file does not exist, it is always obsolete. Other wise, it is obsolete if any of it's dependencies has a more recent modification time than the file.
:: HakyllConfiguration | Configuration |
-> FilePath | File to check |
-> Bool | If the given file is internal |
Check if a file is meant for Hakyll internal use, i.e. if it is located in the destination or store directory