Beispiel #1
0
        protected override void RunOperation(IEnumerable <ConflictItem> operationItems, bool ignoreConflicts)
        {
            FileOperation fi = new FileOperation(sourceProcessor.Directory, targetProcessor.Directory, Api.FileFuncFlags.FO_MOVE);

            if (conflictItems == null || ignoreConflicts)
            {
                fi.Copy(items);
            }
            else if (conflictItems != null && conflictItems.Length > 0 && !ignoreConflicts)
            {
                fi.Copy(nonConflicts, operationItems, conflictItems);
            }
        }
Beispiel #2
0
        protected override void RunOperation(IEnumerable <ConflictItem> operationItems, bool ignoreConflicts)
        {
            if (targetProcessor.HandleOperation(this))
            {
                targetProcessor.TargetOperationOperate(sourceProcessor.Directory, items);
                return;
            }

            FileOperation fi = new FileOperation(sourceProcessor.Directory, targetProcessor.Directory, Api.FileFuncFlags.FO_COPY);

            if (conflictItems == null || ignoreConflicts)
            {
                fi.Copy(items);
            }
            else if (conflictItems != null && conflictItems.Length > 0 && !ignoreConflicts)
            {
                fi.Copy(nonConflicts, operationItems, conflictItems);
            }
        }