-// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
#endif
-bool Exists(const std::string thePath)
+bool SALOMEDS_Exists(const std::string thePath)
{
#ifdef WIN32
if ( GetFileAttributes ( thePath.c_str() ) == 0xFFFFFFFF ) {
std::string aDir = aTmpDir;
- if(Exists(aDir)) {
- for(aRND = 0; Exists(aDir); aRND++) {
+ if(SALOMEDS_Exists(aDir)) {
+ for(aRND = 0; SALOMEDS_Exists(aDir); aRND++) {
sprintf(buffer, "%d", aRND);
aDir = aTmpDir+buffer; //Build a unique directory name
}
for(i=1; i<=aLength; i++) {
std::string aFile(aDirName);
aFile += theFiles[i-1];
- if(!Exists(aFile)) continue;
+ if(!SALOMEDS_Exists(aFile)) continue;
#ifdef WIN32
DeleteFile(aFile.c_str());
}
if(IsDirDeleted) {
- if(Exists(aDirName)) {
+ if(SALOMEDS_Exists(aDirName)) {
#ifdef WIN32
RemoveDirectory(aDirName.c_str());
#else