Safe Haskell | Safe-Infered |
---|
Documentation
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:
-
isPermissionError
if the user is not permitted to obtain the access time; or -
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 actually enabled on the relevant file system.