Skip to content

Commit

Permalink
Enable MOVEFILE_COPY_ALLOWED flag by default
Browse files Browse the repository at this point in the history
  • Loading branch information
jasagredo committed Sep 19, 2024
1 parent 7582869 commit 51ec5dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion System/Directory/Internal/Windows.hsc
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ renamePathInternal opath npath =
(`ioeSetOsPath` opath) `modifyIOError` do
opath' <- furnishPath opath
npath' <- furnishPath npath
Win32.moveFileEx opath' (Just npath') Win32.mOVEFILE_REPLACE_EXISTING
Win32.moveFileEx opath' (Just npath') (Win32.mOVEFILE_REPLACE_EXISTING .|. Win32.mOVEFILE_COPY_ALLOWED)

-- On Windows, the removability of a file may be affected by the attributes of
-- the file itself.
Expand Down

0 comments on commit 51ec5dd

Please sign in to comment.