dua-cli icon indicating copy to clipboard operation
dua-cli copied to clipboard

Ability to filter scan by file type/extension?

Open polarathene opened this issue 4 years ago • 1 comments

On a server with user uploaded content, it'd be useful to do some analysis by knowing a breakdown of disk size by file type, although sometimes it's preferable to just query a particular extension(s), such as for image or archive file formats.

This seems to be a rare feature for some reason among similar projects, I'm unsure why. At best it's usually the ability to exclude directories or files/extensions.

polarathene avatar Aug 09 '21 22:08 polarathene

I could imagine that kind of functionality in a separate 'statistics pane' even, which could leverage the in-memory directory tree for fast analysis.

Something I could also imagine is to output the entire tree as list for parsing by other programs - these could then leverage fast filesystem traversal while allowing people to do the statistics they need easily. The latter is definitely faster to implement.

Byron avatar Aug 10 '21 00:08 Byron