fix copy of single file with webdav

This commit is contained in:
Chee Yee
2023-02-14 00:14:22 -08:00
parent 52235d7d1c
commit fe91eaabe3
+9 -3
View File
@@ -1573,10 +1573,16 @@ namespace Actions
sprintf(status_message, "%s", lang_strings[STR_CANT_COPY_TO_SUBDIR_MSG]);
continue;
}
int res = CopyRemotePath(*it, new_path);
if (res == 0)
sprintf(status_message, "%s - %s", it->name, lang_strings[STR_FAIL_COPY_MSG]);
}
else
{
int res = CopyRemotePath(*it, remote_directory);
if (res == 0)
sprintf(status_message, "%s - %s", it->name, lang_strings[STR_FAIL_COPY_MSG]);
}
int res = CopyRemotePath(*it, new_path);
if (res == 0)
sprintf(status_message, "%s - %s", it->name, lang_strings[STR_FAIL_COPY_MSG]);
}
activity_inprogess = false;
file_transfering = false;