Overwrite existing files with moveFile.
authorachristensen@apple.com <achristensen@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 20 Apr 2015 23:26:44 +0000 (23:26 +0000)
committerachristensen@apple.com <achristensen@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 20 Apr 2015 23:26:44 +0000 (23:26 +0000)
commit8f68aa68ce6d46eb1d67d22a1839a22d2b401824
treed711d777d38653ab69206f17b4b14f9c0d4a7904
parent51355b662efc59033efa9aac99ccfeb0d9cd6a63
Overwrite existing files with moveFile.
https://bugs.webkit.org/show_bug.cgi?id=143968

Reviewed by Brady Eidson and Anders Carlsson.

* platform/mac/FileSystemMac.mm:
(-[WebFileManagerDelegate fileManager:shouldProceedAfterError:movingItemAtURL:toURL:]):
(WebCore::moveFile):
r182932 introduced moveFile instead of renameFile.  In order to preserve behavior, it should overwrite existing files.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@183035 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/mac/FileSystemMac.mm