From: rnv Date: Thu, 28 Feb 2019 17:10:53 +0000 (+0300) Subject: Remove unnecessary trace from console. X-Git-Tag: V9_3_0a2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8818ae45c181f0ef2919665cf8e6d2889f6cbdb9;p=modules%2Fkernel.git Remove unnecessary trace from console. --- diff --git a/src/Container/Container_i.cxx b/src/Container/Container_i.cxx index 93096d9b8..0c8a0a48b 100644 --- a/src/Container/Container_i.cxx +++ b/src/Container/Container_i.cxx @@ -1853,12 +1853,13 @@ void Engines_Container_i::clearTemporaryFiles() { std::list::const_iterator it; for ( it = _tmp_files.begin(); it != _tmp_files.end(); ++it ) { -#ifdef WIN32 - std::string command = "del /F /P"; +#ifdef WIN32 + std::string command = (GetFileAttributes((*it).c_str()) == FILE_ATTRIBUTE_DIRECTORY) ? "rd /Q \"" : "del /F /Q \""; #else std::string command = "rm -rf "; #endif command += *it; + command += "\" 2>NUL"; system( command.c_str() ); } _tmp_files.clear(); diff --git a/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx b/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx index fb67415f5..3e63782ae 100644 --- a/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx +++ b/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx @@ -792,7 +792,7 @@ bool SALOMEDSImpl_Study::Impl_SaveAs(const std::string& aStudyUrl, size_t aLen = strlen(buffer); if (buffer[aLen-1] == '\n') buffer[aLen-1] = char(0); #ifdef WIN32 - aCmd = "move /Y \"" + aStudyTmpDir + std::string(buffer) + "\" \"" + SALOMEDSImpl_Tool::GetDirFromPath(aStudyUrl) +"\""; + aCmd = "move /Y \"" + aStudyTmpDir + std::string(buffer) + "\" \"" + SALOMEDSImpl_Tool::GetDirFromPath(aStudyUrl) +"\" 2>NUL"; #else aCmd = "mv -f \"" + aStudyTmpDir + std::string(buffer) + "\" \"" + SALOMEDSImpl_Tool::GetDirFromPath(aStudyUrl)+"\""; #endif