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




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:

  • System.IO.Error.isPermissionError if the user is not permitted to obtain the access time; or
  • System.IO.Error.isDoesNotExistError if the file or directory does not exist.

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 enabled on the relevant file system.