[GLib] FileSystem::moveFile() should fall back to copying
authoraperez@igalia.com <aperez@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 10 Dec 2018 20:46:29 +0000 (20:46 +0000)
committeraperez@igalia.com <aperez@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 10 Dec 2018 20:46:29 +0000 (20:46 +0000)
commitcd8a3e54ce0bef6d7ee39b0f6a877b1983e31465
tree46505939deedcd3f61ed734dcacf7da8e77411da
parent3436b84b66902cde53b2f2bf85cc97340c895ff9
[GLib] FileSystem::moveFile() should fall back to copying
https://bugs.webkit.org/show_bug.cgi?id=192562

Reviewed by Michael Catanzaro.

No new tests needed.

* platform/glib/FileSystemGlib.cpp:
(WebCore::FileSystem::moveFile): Use g_file_move() instead of a plain g_rename(), which
provides a fall-back which does copy+delete when a direct move or rename cannot be done.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@239043 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/glib/FileSystemGlib.cpp