{"id":23453921,"url":"https://github.com/codeconscious/unique-file-generator-csharp","last_synced_at":"2025-10-30T21:30:22.424Z","repository":{"id":65558782,"uuid":"442114757","full_name":"codeconscious/unique-file-generator-csharp","owner":"codeconscious","description":"Create an arbitrary number of random, unique (by name and content) files.","archived":false,"fork":false,"pushed_at":"2025-02-07T07:32:33.000Z","size":137,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-07T08:26:31.482Z","etag":null,"topics":["bulk-file-creation","bulk-file-generation","cli","csharp","dotnet","random-file-generator","terminal","unique-file-generator","unique-files"],"latest_commit_sha":null,"homepage":"","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/codeconscious.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-27T09:36:30.000Z","updated_at":"2025-02-07T07:32:32.000Z","dependencies_parsed_at":"2024-12-24T02:31:39.072Z","dependency_job_id":"afa3a768-8b9d-4810-9f77-150795da7312","html_url":"https://github.com/codeconscious/unique-file-generator-csharp","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeconscious%2Funique-file-generator-csharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeconscious%2Funique-file-generator-csharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeconscious%2Funique-file-generator-csharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeconscious%2Funique-file-generator-csharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeconscious","download_url":"https://codeload.github.com/codeconscious/unique-file-generator-csharp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239060489,"owners_count":19574969,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["bulk-file-creation","bulk-file-generation","cli","csharp","dotnet","random-file-generator","terminal","unique-file-generator","unique-files"],"created_at":"2024-12-24T02:31:09.097Z","updated_at":"2025-10-30T21:30:22.413Z","avatar_url":"https://github.com/codeconscious.png","language":"C#","readme":"# Unique File Generator (C#)\n\n(I also have versions of this tool written in [Rust](https://github.com/codeconscious/unique-file-generator-rust) and [F#](https://github.com/codeconscious/unique-file-generator-fsharp/).)\n\nThis command line tool allows you to quickly and easily create an arbitrary number of unique (by name and content) files on your computer. Each filename contains a random collection of characters to differentiate them. You can also supply optional parameters to customize files according to your needs. Before running, the tool will check that there is sufficient drive space available for the operation.\n\nRelease files are now available! Alternately, you can compile it manually with .NET 7.\n\n## Usage\nAt the minimum, you must specify the number of files you want to generate. This should be a single positive integer (with optional commas).\n\n#### Example\n\n```\ndotnet run 1000\n```\n\n### Argument Flags\nEach argument flag is optional. You must supply at least one value for each argument used. If you supply multiple values for an argument, they will be concatenated into one string divided by spaces.\n\nFlag | Description\n---- | :----\n-p | Add a filename prefix. If the prefix ends with a non-alphanumeric character, no space will be added after the prefix; otherwise, one will be automatically added.\n-e | The file extension of the generated files. The opening period is optional. If not specified, no extension is added.\n-s | The desired size of each file in bytes, which will be populated with random characters. If not specified, each file will only contain its own name.\n-o | The output subfolder, which will be created if needed. If not supplied, \"output\" is used by default.\n-d | A delay in milliseconds to be applied between each file's creation. Defaults to 0 if unspecified.\n\n#### Examples\n\nTip: Until release files are uploaded, I recommend adding `--` after `dotnet run` when using argument flags to signal that the parameters are for the file generator and not for the `dotnet` command.\n\n```\ndotnet run -- 50,000 -p Random-\n```\nCreates 50,000 files, each named similarly to \"Random-########\", in a subfolder named \"output\". There are no file extensions, nor is there a space after the prefix (due to the prefix's ending hyphen).\n\n```\ndotnet run -- 100 -p TEST-1229 -e txt -o My Output Folder -s 1000000 -d 1000\n```\nCreates one hundred 1MB files, each named similarly to \"TEST-1229 ##########.txt\", with a 1s break between each file's creation, and in a subfolder called \"My Output Folder\".\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeconscious%2Funique-file-generator-csharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeconscious%2Funique-file-generator-csharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeconscious%2Funique-file-generator-csharp/lists"}