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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mostfiles-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 b50b2040390177ca535df45e16619a0bee36fe83bd5e5e0a83cd45832d73e96f
MD5 6f407f571d16bcaf11f3b1e840b69009
BLAKE2b-256 8d11228f53b0482c66eadf6c0d44588776ae60ea2baeac1cc9dabeb933f1a2f1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mostfiles-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0463c3d71794528fed634285eda3ddb0a2b580c11065fac262d26d7e7c726f32
MD5 5fbe6230d16dc076b7b0fe30366c2a20
BLAKE2b-256 0a26ea22be89bf3007803b434757c6e5c73af57216ff4325d754c58817488d0d

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