Browse Source

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

Source commit: ff637179c9b71c227f02c831e23fb92cc7cb8595
Martin Prikryl 1 year ago
parent
commit
7f9a8735e0
1 changed files with 1 additions and 1 deletions
  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)));
     }