diff --git a/src/SMESH/SMESH_File.cxx b/src/SMESH/SMESH_File.cxx index 5338a6b7f..a86092b42 100644 --- a/src/SMESH/SMESH_File.cxx +++ b/src/SMESH/SMESH_File.cxx @@ -7,6 +7,7 @@ #include "utilities.h" #include +#include #include #include #include @@ -125,7 +126,8 @@ bool SMESH_File::remove() { close(); try { - OSD_File( TCollection_AsciiString((char*)_name.data()) ).Remove(); + OSD_Path filePath(TCollection_AsciiString((char*)_name.data())); + OSD_File(filePath).Remove(); } catch ( Standard_ProgramError ) { MESSAGE("Can't remove file: " << _name << " ; file does not exist or permission denied");