Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Return the quota of 1st level sub folders in a directory.

Project Description

This program returns the quota of 1st level sub directories in a directory using the du command (available on all *nix platforms).


If no start directory is given all directories in the current one will be checked by default:

$ qcheck
./directory-0   4
./directory-1   920
./directory-9   8248
.            41264

Choose directories

Sometimes it is required to get the quota of a defined subset of directories.

It is possible to give folder names as arguments:

$ qcheck directory-1 directory-2
./directory-1   920
./directory-2   120

This method only make sense for a couple of directories. A greater folder list can be given by a text file. The folder names should? be written line by line in the text file. To use it give the option -t and than the filename like this:

$ qcheck -t folder_set.txt

If the folder doesn’t exist a “DoesentExistException” will show you that for every missing Folder.


By default the result is written to the standard output in bit-format.

Each directory-quota will be presented in one line:

$ qcheck
./directory-0   4
./directory-1   920
./directory-9   8248
.            41264

The output can also converted to a human readable form with the -r option:

$ qcheck -r
./directory-0 4,0K
./directory-1 920K
./directory-9 8,1M
.           41M


If the file output is enabled with the option -f FILENAME the output will be written to a csv-file. The file will be created if it does not exists.

If the file already exists, the new content will be saved as a new column in the document. The name of the column contains the date like YY-MM:

<caption>Example CSV output</caption>

If the column already exists the quotachecker will return a note that you have to set the -o parameter if you want to overwrite the column and exit. If the -o option is set quotachecker will overwrite the column by if it exist.


If the installed python is at least 2.7 you have all what you need and there is nothing to install.

If the installed python is 2.6 you need to install argparse witch is already done if you installed the quotachecker with pip.


If something doesn’t work as described please first run the tests:


ad send me me the output if it fails.


1.7 (2012-05-09)

  • Initial release

Release History

This version
History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(151.8 kB) Copy SHA256 Hash SHA256
Source None May 9, 2012

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers