{"id":18238203,"url":"https://github.com/soenneker/soenneker.utils.file.download","last_synced_at":"2026-06-10T13:01:00.079Z","repository":{"id":260072987,"uuid":"878731079","full_name":"soenneker/soenneker.utils.file.download","owner":"soenneker","description":"Provides a flexible utility for downloading files from specified URIs, with thread-safe concurrency and automatic file name conflict handling","archived":false,"fork":false,"pushed_at":"2026-06-05T22:03:37.000Z","size":2132,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-05T22:22:39.041Z","etag":null,"topics":["csharp","dotnet","download","file","filedownloadutil","remote","util","utils"],"latest_commit_sha":null,"homepage":"https://soenneker.com","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/soenneker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"soenneker","thanks_dev":"soenneker"}},"created_at":"2024-10-26T00:55:50.000Z","updated_at":"2026-06-05T22:03:42.000Z","dependencies_parsed_at":"2024-12-06T13:34:35.667Z","dependency_job_id":"9673c5d8-3f91-4c24-9424-bbad172531ad","html_url":"https://github.com/soenneker/soenneker.utils.file.download","commit_stats":null,"previous_names":["soenneker/soenneker.utils.file.download"],"tags_count":418,"template":false,"template_full_name":null,"purl":"pkg:github/soenneker/soenneker.utils.file.download","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.utils.file.download","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.utils.file.download/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.utils.file.download/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.utils.file.download/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soenneker","download_url":"https://codeload.github.com/soenneker/soenneker.utils.file.download/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.utils.file.download/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34153483,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","dotnet","download","file","filedownloadutil","remote","util","utils"],"created_at":"2024-11-05T03:04:22.132Z","updated_at":"2026-06-10T13:01:00.025Z","avatar_url":"https://github.com/soenneker.png","language":"C#","funding_links":["https://github.com/sponsors/soenneker","https://thanks.dev/soenneker"],"categories":[],"sub_categories":[],"readme":"[![](https://img.shields.io/nuget/v/soenneker.utils.file.download.svg?style=for-the-badge)](https://www.nuget.org/packages/soenneker.utils.file.download/)\n[![](https://img.shields.io/github/actions/workflow/status/soenneker/soenneker.utils.file.download/publish-package.yml?style=for-the-badge)](https://github.com/soenneker/soenneker.utils.file.download/actions/workflows/publish-package.yml)\n[![](https://img.shields.io/nuget/dt/soenneker.utils.file.download.svg?style=for-the-badge)](https://www.nuget.org/packages/soenneker.utils.file.download/)\n[![](https://img.shields.io/github/actions/workflow/status/soenneker/soenneker.utils.file.download/codeql.yml?label=CodeQL\u0026style=for-the-badge)](https://github.com/soenneker/soenneker.utils.file.download/actions/workflows/codeql.yml)\n\n# ![](https://user-images.githubusercontent.com/4441470/224455560-91ed3ee7-f510-4041-a8d2-3fc093025112.png) Soenneker.Utils.File.Download\n### Provides a flexible utility for downloading files from specified URIs, with thread-safe concurrency and automatic file name conflict handling\n\n## Installation\n\n```\ndotnet add package Soenneker.Utils.File.Download\n```\n\n## Usage\n\n1. Register `IFileDownloadUtil` within DI (`Program.cs`).\n\n```csharp\npublic static async Task Main(string[] args)\n{\n    ...\n    builder.Services.AddFileDownloadUtilAsScoped();\n}\n```\n\n2. Inject `IFileDownloadUtil`\n\nExample:\n\n```csharp\npublic class TestClass\n{\n    private readonly IFileDownloadUtil _util;\n\n    public TestClass(IFileDownloadUtil util)\n    {\n        _util = util;\n    }\n\n    public async ValueTask Download()\n    {\n        string directory = \"path/to/save/files\";\n        List\u003cstring\u003e uris = new List\u003cstring\u003e\n        {\n            \"https://example.com/file1.jpg\",\n            \"https://example.com/file2.jpg\",\n            \"https://example.com/file3.jpg\"\n        };\n\n        int maxConcurrentDownloads = 3;\n\n        List\u003cstring\u003e downloadedFiles = await _util.DownloadFiles(directory, uris, maxConcurrentDownloads);\n    }\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoenneker%2Fsoenneker.utils.file.download","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoenneker%2Fsoenneker.utils.file.download","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoenneker%2Fsoenneker.utils.file.download/lists"}