[DCM-1211] Make copyTo() copy real file
authorJihye Kang <jye.kang@samsung.com>
Thu, 4 Apr 2013 05:09:00 +0000 (14:09 +0900)
committerJihye Kang <jye.kang@samsung.com>
Thu, 4 Apr 2013 05:17:56 +0000 (14:17 +0900)
[Title] Make copyTo copy real file rather than link file
[Issue#] DCM-1211
[Problem] copyTo() filesystem API does not do real copy of the file
[Cause] copyTo() uses POSIX link. So the change of one file affect each other.
[Solution] Copy real file for copyTo API

Change-Id: I62a9804e5f8e6fa2117c7f68deb8a06608fa64c8

Source/WebCore/platform/efl/tizen/AsyncFileSystemTizen.cpp

index 281acd6..3cdb2a8 100644 (file)
@@ -181,7 +181,7 @@ static void copyAsync(ScriptExecutionContext*, PassOwnPtr<AsyncFileSystemCallbac
         return;
     }
 
-    if (linkFile(sourcePath, destinationPath))
+    if (copyFile(sourcePath, destinationPath))
         helperCallbacks->didSucceed();
     else
         helperCallbacks->didFail(FileError::NOT_FOUND_ERR);