| Safe Haskell | Safe-Infered |
|---|
Hakyll.Core.Util.File
Description
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.
Arguments
| :: Bool | Include directories? |
| -> FilePath | Directory to search |
| -> IO [FilePath] | List of files found |
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.
Arguments
| :: 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