Просмотр исходного кода

Linux - remove destination file or directory before copying to it.

Christopher Reed 12 лет назад
Родитель
Сommit
e5d25ff53a
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      Core/Contents/Source/PolySDLCore.cpp

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

@@ -443,6 +443,7 @@ 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) {