コード例 #1
0
        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);
            }
        }
コード例 #2
0
ファイル: FileSyncAgent.cs プロジェクト: nydehi/onesync
 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);
     }
 }