Sfoglia il codice sorgente

Move command on Synchronization checklist window can be used with long local paths

Source commit: ff637179c9b71c227f02c831e23fb92cc7cb8595
Martin Prikryl 1 anno fa
parent
commit
7f9a8735e0
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      source/forms/CustomScpExplorer.cpp

+ 1 - 1
source/forms/CustomScpExplorer.cpp

@@ -6422,7 +6422,7 @@ void __fastcall TCustomScpExplorerForm::DoSynchronizeMove(
   }
   else if (DebugAlwaysTrue(Side == osLocal))
   {
-    if (!MoveFile(FileName.c_str(), NewFileName.c_str()))
+    if (!MoveFile(ApiPath(FileName).c_str(), ApiPath(NewFileName).c_str()))
     {
       throw EOSExtException(FMTLOAD(RENAME_FILE_ERROR, (FileName, NewFileName)));
     }