File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -343,8 +343,18 @@ void ELISE_fp::RmFile(const std::string & aFile)
343
343
344
344
void ELISE_fp::MvFile (const std::string & aName1,const std::string & aDest)
345
345
{
346
- std::string aNameCom = std::string (SYS_MV)+ " " + aName1 + " " + aDest;
346
+ #if ELISE_windows
347
+ string src = aName1;
348
+ replace (src.begin (), src.end (), ' /' , ' \\ ' );
349
+ string dst = aDest;
350
+ replace (dst.begin (), dst.end (), ' /' , ' \\ ' );
351
+ std::string aNameCom = std::string (SYS_MV) + " " + src + " " + dst;
352
+ #else
353
+ std::string aNameCom = std::string (SYS_MV) + " " + aName1 + " " + aDest;
354
+ #endif
355
+
347
356
VoidSystem (aNameCom.c_str ());
357
+ ELISE_DEBUG_ERROR (!ELISE_fp::exist_file (aDest), " ELISE_fp::MvFile" , ' [' << aNameCom << " ] has not been created" );
348
358
}
349
359
350
360
void ELISE_fp::CpFile (const std::string & aName1,const std::string & aDest)
You can’t perform that action at this time.
0 commit comments