Skip to main content

Find directories which contains most files

Project description

mostfiles

List directories and number of files inside to easily find directories with most files.

Give it path (default is .) and just 3 boolean options -d/--dir - each subdirectory counted as 1 file too -a/--all - do not ignore hidden files/directories -r/--recursive - recursive mode. Mostfiles ALWAYS walks subdirectories recursively, but -r flag makes it to count files in nested directories.

Examples:

$ mostfiles
3 .
1 mostfiles/__pycache__
1 mostfiles

3 files in current directory, all hidden files/directories (like .gitignore, .git ) are ignored. Only LICENSE, pyproject.toml and README.md is counted. Subdirectory "mostfiles" not counted because -d not given.

$ mostfiles -r
5 .
2 mostfiles
1 mostfiles/__pycache__

Now . has 5 files. 3 in current directory, but also 2 in subdirectories.

$ mostfiles -ar | head -n 3
32 .
26 .git
13 .git/hooks

Now, count hidden files/directories (such as .git, .gitignore)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mostfiles-0.0.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

mostfiles-0.0.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file mostfiles-0.0.1.tar.gz.

File metadata

  • Download URL: mostfiles-0.0.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for mostfiles-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ade409231c4d231ae235ac21b828337ae0a372d0302dfd2ce1514fb71e601c15
MD5 d95030df9b901f9ac7f5e35e78318409
BLAKE2b-256 858894c36bb55d6c372ffd3b5781aadc50c5f85974a73e3c212d275fa3227a81

See more details on using hashes here.

File details

Details for the file mostfiles-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: mostfiles-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for mostfiles-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6c9f326dcc7efaef9fb35c9ef05d3ca6b9e7631fe795cede5e58b8813e256423
MD5 a5e4957cd96419a292d5e465caf4480f
BLAKE2b-256 f4888e9885ecb54c9ec230dfa2697ca6041976d639b89333c4d80255b9bdb6ee

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page