Ver Fonte

Change copyDiskItem to use 'cp -RT' instead of removing destItem prior to copy.

Christopher Reed há 12 anos atrás
pai
commit
1522aa95f0
1 ficheiros alterados com 1 adições e 2 exclusões
  1. 1 2
      Core/Contents/Source/PolySDLCore.cpp

+ 1 - 2
Core/Contents/Source/PolySDLCore.cpp

@@ -443,11 +443,10 @@ void SDLCore::createFolder(const String& folderPath) {
 }
 
 void SDLCore::copyDiskItem(const String& itemPath, const String& destItemPath) {
-    removeDiskItem(destItemPath);
     int childExitStatus;
     pid_t pid = fork();
     if (pid == 0) {
-        execl("/bin/cp", "/bin/cp", "-R", itemPath.c_str(), destItemPath.c_str(), (char *)0);
+        execl("/bin/cp", "/bin/cp", "-RT", itemPath.c_str(), destItemPath.c_str(), (char *)0);
     } else {
         pid_t ws = waitpid( pid, &childExitStatus, 0);
     }