MESSAGE("Result_i::~Result_i() - this = "<<this);
if (mySourceId == eRestoredFile) {
static QString aCommand;
+#ifndef WNT
aCommand.sprintf("rm %s",myFileInfo.filePath().latin1());
+#else
+ aCommand.sprintf("del /F %s",myFileInfo.filePath().latin1());
+#endif
MESSAGE("Result_i::~Result_i - system("<<aCommand<<") = "<<system(aCommand));
+
+#ifndef WNT
aCommand.sprintf("rmdir --ignore-fail-on-non-empty %s",myFileInfo.dirPath().latin1());
+#else
+ aCommand.sprintf("del /F %s",myFileInfo.dirPath().latin1());
+#endif
MESSAGE("Result_i::~Result_i - system("<<aCommand<<") = "<<system(aCommand));
}
if(myInput) delete myInput;
print "OK"
file_new = str+'/VISU_005_new.hdf'
-command = "mv " + file + " " + file_new
+
+if sys.platform != "win32":
+ command = "mv " + file + " " + file_new
+else:
+ command = "move /Y " + file + " " + file_new
+
os.system(command)
file = file_new
else : print "OK"
# Remove the study file
-command = "rm -r " + file
+if sys.platform != "win32":
+ command = "rm -r " + file
+else:
+ command = "del /F " + file
os.system(command)
RemoveFile(const QString& theFileName)
{
if( !theFileName.isNull() ){
+#ifndef WNT
QString aCommand = QString( "rm -fr " ) + theFileName;
+#else:
+ QString aCommand = QString( "del /F " ) + theFileName;
+#endif
system( aCommand.latin1() );
}
}