[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
return;
}
- if (linkFile(sourcePath, destinationPath))
+ if (copyFile(sourcePath, destinationPath))
helperCallbacks->didSucceed();
else
helperCallbacks->didFail(FileError::NOT_FOUND_ERR);