diff --git a/src/complex/Utilities/Parsing/HDF5/Writers/FileWriter.cpp b/src/complex/Utilities/Parsing/HDF5/Writers/FileWriter.cpp index 7b13afdf3b..7b4f89e945 100644 --- a/src/complex/Utilities/Parsing/HDF5/Writers/FileWriter.cpp +++ b/src/complex/Utilities/Parsing/HDF5/Writers/FileWriter.cpp @@ -13,7 +13,7 @@ Result FileWriter::CreateFile(const std::filesystem::path& filepath) auto parentPath = filepath.parent_path(); try { - if(!std::filesystem::exists(parentPath)) + if(!parentPath.empty() && !std::filesystem::exists(parentPath)) { if(!std::filesystem::create_directories(parentPath)) {