/// <summary> /// Initializes a new instance of the <see cref="Collector"/> class. /// </summary> /// <param name="sourceRootPath">The source path of files and folders.</param> /// <param name="destinationDirectoryPath">The path of the folder where the files will be moved.</param> /// <param name="overwrite">true to overwrite the destination files if they already exist; false otherwise.</param> /// <param name="collectOperation">The collect operation.</param> /// <param name="extensionsToIgnore">The list of file extensions to ignore when moving files.</param> public Collector(string sourceRootPath, string destinationDirectoryPath, bool overwrite, CollectOperation collectOperation, List <string> extensionsToIgnore) : this(sourceRootPath, destinationDirectoryPath, overwrite, collectOperation, extensionsToIgnore, new FileSystem()) { }
/// <summary> /// Initializes a new instance of the <see cref="Collector"/> class. /// </summary> /// <param name="sourceRootPath">The source path of files and folders.</param> /// <param name="destinationDirectoryPath">The path of the folder where the files will be moved.</param> /// <param name="overwrite">true to overwrite the destination files if they already exist; false otherwise.</param> /// <param name="collectOperation">The collect operation.</param> /// <param name="extensionsToIgnore">The list of file extensions to ignore when moving files.</param> /// <param name="fileSystem">The file system used.</param> public Collector(string sourceRootPath, string destinationDirectoryPath, bool overwrite, CollectOperation collectOperation, List <string> extensionsToIgnore, IFileSystem fileSystem) => (SourceRootPath, DestinationDirectoryPath, Overwrite, CollectOperation, ExtensionsToIgnore, _fileSystem)
/// <summary> /// Initializes a new instance of the <see cref="Collector"/> class. /// </summary> /// <param name="sourceRootPath">The source path of files and folders.</param> /// <param name="destinationDirectoryPath">The path of the folder where the files will be moved.</param> /// <param name="overwrite">true to overwrite the destination files if they already exist; false otherwise.</param> /// <param name="collectOperation">The collect operation.</param> /// <param name="fileSystem">The file system used.</param> public Collector(string sourceRootPath, string destinationDirectoryPath, bool overwrite, CollectOperation collectOperation, IFileSystem fileSystem) : this(sourceRootPath, destinationDirectoryPath, overwrite, collectOperation, new List <string>(), fileSystem) { }