Commit 81a5eae6 authored by Andrius Štikonas's avatar Andrius Štikonas
Browse files

Restrict CopyFileData to writing to already existing files.

parent 3903ae1b
Pipeline #133419 passed with stage
in 4 minutes and 5 seconds
......@@ -179,6 +179,11 @@ QVariantMap ExternalCommandHelper::CopyFileData(const QString& sourceDevice, con
return {};
// Only allow writing to existing files.
if(!std::filesystem::exists(targetPath)) {
return {};
QVariantMap reply;
reply[QStringLiteral("success")] = true;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment