hakyll-3.2.7.1: A static website compiler library

Safe HaskellSafe-Infered

Hakyll.Core.Util.File

Description

A module containing various file utility functions

Synopsis

Documentation

makeDirectories :: FilePath -> IO ()Source

Given a path to a file, try to make the path writable by making all directories on the path.

getRecursiveContentsSource

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.

isFileObsoleteSource

Arguments

:: FilePath

The cached file

-> [FilePath]

Dependencies of the cached file

-> IO Bool 

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.

isFileInternalSource

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