public OperationInfo(OperationType operationType, UnaryFileSystemOperationSettings settings) { OperationType = operationType; Files = settings.TopLevelFiles; Directories = settings.TopLevelDirectories; TotalFilesCount = Files.Count + Directories.Count; SourceDirectory = settings.SourceDirectory; }
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)); }
private static OperationInfo CreateOperationInfo(OperationType operationType, UnaryFileSystemOperationSettings settings) => new OperationInfo(operationType, settings);