diff --git a/vrs/utils/FilteredFileReader.cpp b/vrs/utils/FilteredFileReader.cpp index c3cfd6b0..8cad3836 100644 --- a/vrs/utils/FilteredFileReader.cpp +++ b/vrs/utils/FilteredFileReader.cpp @@ -212,7 +212,7 @@ int FilteredFileReader::openFile(unique_ptr& file) const { string FilteredFileReader::getCopyPath() { // if uploading, but no temp file path has been provided, automatically generate one string fileName = getFileName(); - return os::getTempFolder() + (fileName.empty() ? "file.tmp" : fileName); + return os::makeUniqueFolder() + (fileName.empty() ? "file.tmp" : fileName); } bool FilteredFileReader::afterConstraint(const string& after) {