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.3.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

mostfiles-0.0.3-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mostfiles-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 a204d1f013089a91d284ebe8edb57dcde086e80761bfe843226e4199d632a116
MD5 ef35e6a36ade63e90f08d8827b118d0f
BLAKE2b-256 bbf7427c458d847fa80aadb278f6861e52d37ad3c623406499e990c2b0b085f2

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mostfiles-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 75dcdaa80d00b92b438e8bef7212efd28e100bf77ba4ab079d1675346f8c3f19
MD5 9567079d993f3f95a2555fa070cfd14a
BLAKE2b-256 61c620f62ab43213e00779cdbb2ee89ac3888b86138acb710949aaac655d7868

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