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

@ -2158,11 +2158,17 @@ namespace Novell.CASA.GUI
// get file list for .miCASAFiles
string[] files = Directory.GetFiles(sOldDirectory, ".miCASA*");
if (files != null)
{
{
string sFileSeperator;
if (Common.IS_WINDOWS)
sFileSeperator = "\\";
else
sFileSeperator = "/";
// first copy them to the new location
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);
}