{"id":27086970,"url":"https://github.com/davidhintelmann/filesystemsize","last_synced_at":"2025-04-06T05:49:02.137Z","repository":{"id":284865768,"uuid":"956316866","full_name":"davidhintelmann/FileSystemSize","owner":"davidhintelmann","description":"CLI tool to scan one's PC to determine a drive's files sizes and return the largest files in order","archived":false,"fork":false,"pushed_at":"2025-03-28T03:49:13.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T04:31:35.511Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/davidhintelmann.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2025-03-28T03:45:53.000Z","updated_at":"2025-03-28T03:49:16.000Z","dependencies_parsed_at":"2025-03-28T04:31:37.341Z","dependency_job_id":"e344fa06-675c-47f0-ab26-13ae1eec9b52","html_url":"https://github.com/davidhintelmann/FileSystemSize","commit_stats":null,"previous_names":["davidhintelmann/filesystemsize"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidhintelmann%2FFileSystemSize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidhintelmann%2FFileSystemSize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidhintelmann%2FFileSystemSize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidhintelmann%2FFileSystemSize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidhintelmann","download_url":"https://codeload.github.com/davidhintelmann/FileSystemSize/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247441007,"owners_count":20939236,"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":[],"created_at":"2025-04-06T05:49:01.728Z","updated_at":"2025-04-06T05:49:02.124Z","avatar_url":"https://github.com/davidhintelmann.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# System File Size CLI Tool\n\nThis repo contains source code for using a CLI tool to scan one's PC to determine a drive's files sizes and return the largest files in order, along with their path.\n\n**Note:** This tool has only been tested on Windows 11 PC but one could use it for other operating systems.\n\nSource code can be compiled with either gcc or clang compiler for c++17.\n\n## src Directory\n\nThis directory contains the source code to scan ones C Drive. There are two files here:\n1. single.cpp\n2. multi.cpp\n\nThe `single.cpp` file is code for a single threaded application. Where as the `multi.cpp` file is for asynchronously scanning one's PC.\n\n## How to use this Code\n\nCompile the code using either gcc or clang (from src directory):\n\n### Single Threaded App\n\n```bash\ng++ -o single.exe single.cpp\n```\n\nand then run the compiled program.\n\n```bash\n.\\single.exe\n```\n\n### Multi-Threaded App\n\n```bash\ng++ -o multi.exe multi.cpp\n```\n\nand then run the compiled program.\n\n```bash\n.\\multi.exe\n```\n\n### Run time parameters\n\nuse `-depth` or `-num` when running the program to override the default run time parameters.\n\n**Default Parameters:**\n- `depth` is used to determine how many directories to recursively scan, starting with the C drive.\n  - default this code will scan the C directory with a `depth` of 1 (i.e. only the root directory).\n- `num` determines the number of files outputted to the console.\n  - default top 10 largest files scanned.\n\n**Examples:**\n\nThe following console command will scan the C drive for a depth of 10 (scan no further than 10 files deep into the C drive) and output the top 20 largest files found.\n\n```bash\n.\\multi.exe -depth 10 -num 20\n```\n\n## Code Explanation\n\n**TODO: Complete Section**\n\nThis repo only uses the standard library for all containers, algorithms, and filesystem functionality.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidhintelmann%2Ffilesystemsize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidhintelmann%2Ffilesystemsize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidhintelmann%2Ffilesystemsize/lists"}