Currently, a PermissionDenied error is raised when using set_file_times, set_file_mtime, set_file_atime or set_symlink_file_times and passing a path to a folder on Windows.
Passing the FILE_FLAG_BACKUP_SEMANTICS flag when opening the file handle fixes the issue.
This PR also adds tests for setting directory times.
Currently, a
PermissionDenied
error is raised when usingset_file_times
,set_file_mtime
,set_file_atime
orset_symlink_file_times
and passing a path to a folder on Windows. Passing theFILE_FLAG_BACKUP_SEMANTICS
flag when opening the file handle fixes the issue.This PR also adds tests for setting directory times.