{-|
The 'getChangeTime' operation returns the
UTC time at which the file or directory was changed.
The time is only available on Unix and Mac.
Note that Unix's rename() does not change ctime but
MacOS's rename() does.
-}
getChangeTime :: FilePath -> IO (Maybe UTCTime)
getChangeTime file = Just . epochTimeToUTCTime . statusChangeTime <$> getFileStatus file
getChangeTime :: FilePath -> IO (Maybe UTCTime)
getChangeTime file = Just . epochTimeToUTCTime . statusChangeTime <$> getFileStatus file
getChangeTime file = Just . epochTimeToUTCTime . statusChangeTime <$> getFileStatus file