Fix for new feature

This commit is contained in:
Jim Norman 2006-08-29 19:38:02 +00:00
parent 957e0c1db5
commit f0f75a8716

View File

@ -2159,10 +2159,16 @@ namespace Novell.CASA.GUI
string[] files = Directory.GetFiles(sOldDirectory, ".miCASA*"); string[] files = Directory.GetFiles(sOldDirectory, ".miCASA*");
if (files != null) if (files != null)
{ {
string sFileSeperator;
if (Common.IS_WINDOWS)
sFileSeperator = "\\";
else
sFileSeperator = "/";
// first copy them to the new location // first copy them to the new location
foreach ( string file in files) foreach ( string file in files)
{ {
string sFileName = file.Substring(file.LastIndexOf("\\") + 1); string sFileName = file.Substring(file.LastIndexOf(sFileSeperator) + 1);
File.Copy(file, sNewDirectory + sFileName, true); File.Copy(file, sNewDirectory + sFileName, true);
} }