{"id":18770044,"url":"https://github.com/yaroslaff/mostfiles","last_synced_at":"2026-02-08T12:06:54.159Z","repository":{"id":246817085,"uuid":"823654426","full_name":"yaroslaff/mostfiles","owner":"yaroslaff","description":"List directories and number of files inside to easily find directories with most files.","archived":false,"fork":false,"pushed_at":"2024-08-06T09:07:10.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-04T05:38:58.830Z","etag":null,"topics":["count","df","directories","directory","du","file","files","filesystem","most","recursive","sort","sorted","sum","top","usage"],"latest_commit_sha":null,"homepage":"","language":"Python","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/yaroslaff.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":"2024-07-03T12:55:52.000Z","updated_at":"2024-08-06T09:07:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"33870f14-d096-458c-97fa-3169cf890561","html_url":"https://github.com/yaroslaff/mostfiles","commit_stats":null,"previous_names":["yaroslaff/mostfiles"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yaroslaff/mostfiles","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaroslaff%2Fmostfiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaroslaff%2Fmostfiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaroslaff%2Fmostfiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaroslaff%2Fmostfiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yaroslaff","download_url":"https://codeload.github.com/yaroslaff/mostfiles/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaroslaff%2Fmostfiles/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268456852,"owners_count":24253299,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"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":["count","df","directories","directory","du","file","files","filesystem","most","recursive","sort","sorted","sum","top","usage"],"created_at":"2024-11-07T19:17:54.446Z","updated_at":"2026-02-08T12:06:49.121Z","avatar_url":"https://github.com/yaroslaff.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mostfiles\n\nList directories and number of files inside to easily find directories with most files.\n\nGive it path (default is `.`) and few options\n`-d`/`--dir` - each subdirectory counted as 1 file too\n`-a`/`--all` - do not ignore hidden files/directories \n`-r`/`--recursive` - recursive mode. Mostfiles ALWAYS walks subdirectories recursively, but `-r` flag makes it to count files in nested directories.\n`-m`/`--min` - threshold value. Do not print directories which has less then `min` files.\n\nExamples:\n~~~shell\n$ mostfiles\n3 .\n1 mostfiles/__pycache__\n1 mostfiles\n~~~\n3 files in current directory, all hidden files/directories (like .gitignore, .git ) are ignored. Only LICENSE, pyproject.toml and README.md are counted. Subdirectory \"mostfiles\" not counted because `-d` not given.\n\n~~~\n$ mostfiles -r\n5 .\n2 mostfiles\n1 mostfiles/__pycache__\n~~~\nNow `.` has 5 files. 3 in current directory, but also 2 in subdirectories.\n\n~~~\n$ mostfiles -ar | head -n 3\n32 .\n26 .git\n13 .git/hooks\n~~~\nNow, count hidden files/directories (such as .git, .gitignore)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaroslaff%2Fmostfiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyaroslaff%2Fmostfiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaroslaff%2Fmostfiles/lists"}