コード例 #1
0
 public OperationInfo(OperationType operationType, UnaryFileSystemOperationSettings settings)
 {
     OperationType   = operationType;
     Files           = settings.TopLevelFiles;
     Directories     = settings.TopLevelDirectories;
     TotalFilesCount = Files.Count + Directories.Count;
     SourceDirectory = settings.SourceDirectory;
 }
コード例 #2
0
        public IOperation CreateDeleteOperation(UnaryFileSystemOperationSettings settings)
        {
            var deleteOperations     = CreateDeleteOperations(settings.TopLevelDirectories, settings.TopLevelFiles);
            var deleteOperationGroup = CreateOperationGroup(deleteOperations);

            var operations    = CreateOperationsGroupsList(deleteOperationGroup);
            var operationInfo = Create(OperationType.Delete, settings.TopLevelFiles,
                                       settings.TopLevelDirectories, settings.SourceDirectory);

            return(CreateCompositeOperation(operations, operationInfo));
        }
コード例 #3
0
 private static OperationInfo CreateOperationInfo(OperationType operationType, UnaryFileSystemOperationSettings settings) =>
 new OperationInfo(operationType, settings);