mirror of
https://github.com/akuker/RASCSI.git
synced 2024-06-07 13:53:33 +00:00
Updated delete operation
This commit is contained in:
parent
5afce5f50f
commit
d55bf3e06f
|
@ -186,14 +186,6 @@ bool RascsiImage::DeleteImage(int fd, const PbCommand& command)
|
||||||
return ReturnStatus(fd, false, "Missing image filename");
|
return ReturnStatus(fd, false, "Missing image filename");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!IsValidDstFilename(filename)) {
|
|
||||||
return ReturnStatus(fd, false, "Can't delete image file '" + filename + "': File already exists");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (filename.find('/') != string::npos) {
|
|
||||||
return ReturnStatus(fd, false, "The image filename '" + filename + "' must not contain a path");
|
|
||||||
}
|
|
||||||
|
|
||||||
filename = default_image_folder + "/" + filename;
|
filename = default_image_folder + "/" + filename;
|
||||||
|
|
||||||
int id;
|
int id;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user