Improved “dutree” Released

dutree - Recursively summarizes disk usageAbout a week ago I announced the initial release of my new small utility “dutree”. For an explanation of the purpose of the program, see the previous post. It was still missing an important feature that I wanted, namely gauges displaying the relative disk usage for the listed entries. This feature has now been implemented, and it is available in the new version 0.1.1. I also added an option for specifying a maximum depth for the listed entries. This makes it a lot easier to get an overview if there are many subdirectories and files. Click here to download the dutree source code.

2 Responses to “Improved “dutree” Released”

  1. Bjarke Says:

    Hi. Nice tool, especially with the -d option, which is really needed.
    A small feature request: Add an option to include hidden directories/files.

  2. DWORD Says:

    Thanks. That feature is already on the TODO-list. ;) But until it is implemented, you can easily change it by just commenting out these two lines in the printer::include_node function so that it always returns true:

        if (n.path().leaf()[0] == '.')
            return false;

    If I know you right, you already figured that out yourself…

    Edit: Just to make it clear, currently hidden files and directories are included in the summarized size, the entries are just not displayed in the output.

Leave a Reply