public DeleteFilesCommand(DeleteFilesTask task) : base(task) { Path = task.Path; Override = false; }
/// <summary> /// Deletes files which match the file pattern. /// </summary> /// <param name="directoryPath">The directory path from which to start searching for files.</param> /// <param name="filePattern">The file pattern.</param> /// <param name="recursive">if set to <c>true</c>, the method will delete matching files in subdirectories too; /// otherwise it will just delete files in the top directory.</param> /// <returns>The same instance of this <see cref="TRunner"/>.</returns> public TRunner DeleteFiles(string directoryPath, string filePattern, bool recursive) { DeleteFilesTask task = new DeleteFilesTask(directoryPath, filePattern, recursive); return(RunTask(task)); }