access-time- Cross-platform support for retrieving file access times

Safe HaskellSafe-Infered




getAccessTime :: FilePath -> IO ClockTimeSource

The getAccessTime operation returns the clock time at which the file or directory was last accessed.

The operation may fail with:

getAccessTimeResolution :: FilePath -> IO TimeDiffSource

Approximate resolution of access times on your system for the given file or directory.

Presently this will not attempt to determine whether access times are actually enabled on the relevant file system.