-
Notifications
You must be signed in to change notification settings - Fork 49
Add replaceFile #200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Add replaceFile #200
Conversation
d74c63b
to
9c9dc0e
Compare
@@ -709,6 +710,30 @@ renamePath opath npath = | |||
(`ioeAddLocation` "renamePath") `modifyIOError` do | |||
renamePathInternal opath npath | |||
|
|||
-- | 'replaceFile' replaces one file with another file. The replacement file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to elaborate explicitly how replaceFile
is different from renameFile
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added more description
@@ -52,6 +52,7 @@ module System.Directory.OsPath | |||
, copyFile | |||
, copyFileWithMetadata | |||
, getFileSize | |||
, replaceFile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the convention is to provide the same set of functions both from System.Directory
and from System.Directory.OsPath
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
22cf56c
to
cb53340
Compare
haskell/cabal#10938
haskell/win32#240