Fix for new feature
This commit is contained in:
parent
957e0c1db5
commit
f0f75a8716
@ -2159,10 +2159,16 @@ namespace Novell.CASA.GUI
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user