public MultiThreadedFileCopy( DirectoryInfo source, DirectoryInfo destination, List <ISearchFilter> fileFilters, List <ISearchFilter> directoryFilters, FileOperationOptions options) : base(source, destination, fileFilters, directoryFilters, options) { }
public FileMoveOperation( DirectoryInfo source, DirectoryInfo destination, List <ISearchFilter> fileFilters, List <ISearchFilter> directoryFilters, FileOperationOptions options) : base(source, destination, fileFilters, directoryFilters, options) { }
protected MultiThreadedFileOperation( DirectoryInfo source, DirectoryInfo destination, List <ISearchFilter> fileFilters, List <ISearchFilter> directoryFilters, FileOperationOptions options) : base(source, destination, fileFilters, directoryFilters, options) { FileQueue = new ConcurrentQueue <MultiThreadedFileOperationState>(); }
public FileCopyOperation( DirectoryInfo source, DirectoryInfo destination, List <ISearchFilter> fileFilters, List <ISearchFilter> directoryFilters, FileOperationOptions options) : base(source, destination, fileFilters, directoryFilters, options) { if (options.HasFlag(FileOperationOptions.VerifyMD5)) { Handlers.Add(new MD5Verification()); } }
/// <summary> /// Constructs a new instance of <see cref="FileSourceDestinationInfo"/> from a given string. /// </summary> /// <param name="value">A string to be parsed.</param> public FileSourceDestinationInfo(string value) { string[] parts = value.Split(','); if (parts.Length < 2) { throw new ArgumentException($"{nameof(FileSourceDestinationInfo)}: " + $"Too few parameters specified in parsed value", nameof(value)); } FileOperationOptions options = default(FileOperationOptions); if (parts.Length >= 3) { Enum.TryParse(parts[2], out options); } sourcePath = parts[0]; destinationPath = parts[1]; FileOperationOptions = options; }
public FileSettingCheckBox(WindowManager windowManager, string sourceFilePath, string destinationFilePath, FileOperationOptions options, bool reversed) : base(windowManager) { files = new List <FileSourceDestinationInfo> { new FileSourceDestinationInfo(sourceFilePath, destinationFilePath, options) }; this.reversed = reversed; }
public FileSourceDestinationInfo(string source, string destination, FileOperationOptions options) { sourcePath = source; destinationPath = destination; FileOperationOptions = options; }