pyDirStat is a small tool to view statistical information about a directory.
It will generate a view of all files contained in a directory (and subdirectories) with rectangles.
Each rectangle area is proportional to file size. It's a perfect tool to view disk usage with graphics.
You can now configure pydirstat. pds-config.py is provided to help creating configuration file. It will ask few questions, and will write configuration file.
In the configuration file, you will be able to change color associations.
First find the configuration file by launching pds-config.py and answering questions. At the end, the configuration filename will be prompted.
You'll find a section options containing your answers. And then you'll find several type:... sections. Those sections define the "type" associated to each file. A type is just a string like 'image' or 'sound'. Then there is the section color that define the color associated to a file type.
There is four type: section.
type:extension : Every file ending by this extension will have the associated type. This is case sensitive. Most of unix filenames will be recognized by this section.
type:extensionlower : This is the same section exept that the exentension is lowercased (so 'asf' will match 'asf' and 'ASF'). Most of Windows filenames will be recognized by this section.
type:exactmatch : The whole file should be equal to the key. Exemple : "core" file under unix.
type:contain : The file contains the key. Exemple : ".so." to match linux libraries.
Note for windows users: If this is too complex, just edit the type:extensionlower and the color sections.
Note for unix users: If this is too complex, just edit the type:extension and the color sections.
What's New in This Release:
· A way to draw information other than just "file size" was added.
· A way to exclude some files and directories based on filename was added.