private void DeleteRedundantDirtyFiles(IList <SyncAction> actions, IList <FileMetaDataItem> items, string baseFolder) { FileMetadataSyncActionsComparer comparer = new FileMetadataSyncActionsComparer(actions, items); List <FileMetaDataItem> mdOnly = comparer.InMetaDataOnly; foreach (var item in mdOnly) { string absolute = baseFolder + item.RelativePath; Files.FileUtils.DeleteFileAndFolderIfEmpty(baseFolder, absolute, true); } }
private void DeleteRedundantDirtyFiles(IList<SyncAction> actions, IList<FileMetaDataItem> items, string baseFolder) { FileMetadataSyncActionsComparer comparer = new FileMetadataSyncActionsComparer(actions, items); List<FileMetaDataItem> mdOnly = comparer.InMetaDataOnly; foreach (var item in mdOnly) { string absolute = baseFolder + item.RelativePath; Files.FileUtils.DeleteFileAndFolderIfEmpty(baseFolder, absolute, true); } }