public void Dispose()
{
if (RollBackRequested)
{
if (_restored)
CleanupBackupFiles();
}
else
{
if (NewStudyPath != _oldStudyPath && _deleteOriginalFolder)
{
Platform.Log(LogLevel.Info, "Removing old study folder...");
DirectoryUtility.DeleteIfExists(_oldStudyPath, true);
}
CleanupBackupFiles();
}
}