-// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2019 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
string CommunicationProtocol::getRemoveSubCommand(const string & path) const
{
+#ifdef WIN32
+ return string("del /s ") + path;
+#else
return string("rm ") + path;
+#endif
}
string CommunicationProtocol::getRemoveDirectorySubCommand(const string & path) const
{
+#ifdef WIN32
+ return string("rd /s /q ") + path;
+#else
return string("rm -fR ") + path;
+#endif
}
string CommunicationProtocol::getMakeDirectorySubCommand(const string & path) const
{
+#ifdef WIN32
+ return string("md ") + path;
+#else
return string("mkdir -p ") + path;
+#endif
}
int CommunicationProtocol::removeFile(const std::string & path,