Skip to content

New Standard Cleanup: Check File Type #102

@shundhammer

Description

@shundhammer

New Standard Cleanup: Check File Type

This cleanup uses the file command to find out more information about a file. It formats the output a little to make it better readable.

Usage

Click on a file in the tree or in the treemap, then use the context menu (right mouse button) or the Clean Up menu and then select Check File Type.

Or simply press Ctrl-Y.

How to Get It

If you never used QDirStat, you will get it automatically starting with 3b6eb69 (V 1.5.90 or later).

If you did use it before, but you never changed any of the cleanups anyway, simply remove your cleanup config file and start QDirStat:

rm ~/.config/QDirStat/QDirStat-cleanup.conf
qdirstat

If you did change your cleanups and you want to keep those changes, add the following lines to your ~/.config/QDirStat/QDirStat-cleanup.conf:

[Cleanup_99]
Active=true
AskForConfirmation=false
Command="file %n | sed -e 's/[:,] /\\n  /g'"
Hotkey=Ctrl+Y
OutputWindowAutoClose=false
OutputWindowPolicy=ShowAlways
OutputWindowTimeout=500
Recurse=false
RefreshPolicy=NoRefresh
Title=Check File T&ype
WorksForDir=false
WorksForDotEntry=false
WorksForFile=true

You can also do that if you'd like to have it on any older version of QDirStat.

Screenshots

QDirStat-check-file-type-executable

QDirStat executable

QDirStat-check-file-type-obj

.o (object) file

QDirStat-check-file-type-mp3

MP3

Yes, it's perfectly legal; I bought it. The band deserves it.

QDirStat-check-file-type-jpg

JPG photo

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions