Skip to content

Commit

Permalink
setModificationTime can fail with InvalidArgument
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodigrim committed Nov 19, 2023
1 parent 1751cfa commit e6ec698
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions System/Directory.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1166,6 +1166,9 @@ setAccessTime path atime = encodeFS path >>= (`D.setAccessTime` atime)
--
-- * 'isDoesNotExistError' if the file or directory does not exist.
--
-- * 'InvalidArgument' on FAT32 file system if the time is before
-- DOS Epoch (1 January 1980).
--
-- Some caveats for POSIX systems:
--
-- * Not all systems support @utimensat@, in which case the function can only
Expand Down
3 changes: 3 additions & 0 deletions System/Directory/OsPath.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1459,6 +1459,9 @@ setAccessTime path atime =
--
-- * 'isDoesNotExistError' if the file or directory does not exist.
--
-- * 'InvalidArgument' on FAT32 file system if the time is before
-- DOS Epoch (1 January 1980).
--
-- Some caveats for POSIX systems:
--
-- * Not all systems support @utimensat@, in which case the function can only
Expand Down

0 comments on commit e6ec698

Please sign in to comment.