private static void ExpandToFullPath(ICmFolder folder,
string sOldRootDir, string sNewRootDir)
{
foreach (var file in folder.FilesOC)
{
string sFilepath = file.InternalPath;
if (!Path.IsPathRooted(sFilepath))
{
if (FileUtils.SimilarFileExists(Path.Combine(sOldRootDir, sFilepath)) &&
!FileUtils.SimilarFileExists(Path.Combine(sNewRootDir, sFilepath)))
{
file.InternalPath = Path.Combine(sOldRootDir, sFilepath);
}
}
}
foreach (var sub in folder.SubFoldersOC)
ExpandToFullPath(sub, sOldRootDir, sNewRootDir);
}
#endregion