mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-13 13:27:14 +02:00
Not allowing / or spaces in file name prefix (#461)
This commit is contained in:
@ -1244,6 +1244,9 @@ Result<std::string> Detector::getFileNamePrefix(Positions pos) const {
|
||||
}
|
||||
|
||||
void Detector::setFileNamePrefix(const std::string &fname, Positions pos) {
|
||||
if (fname.find_first_of("/ ") != std::string::npos) {
|
||||
throw RuntimeError("Cannot set file name prefix with '/' or ' '");
|
||||
}
|
||||
pimpl->Parallel(&Module::setFileName, pos, fname);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user