k4dirstat icon indicating copy to clipboard operation
k4dirstat copied to clipboard

du output import

Open jeromerobert opened this issue 11 years ago • 2 comments

Original report by Andrea (Bitbucket: eadmaster, GitHub: eadmaster).


Parse and generate the directory tree the from the du output. This way the program could be used to browse offline volumes, like a disk cataloger.

Similar programs: xdiskusage, xdu, tkdu.

jeromerobert avatar Dec 06 '13 01:12 jeromerobert

Original comment by Jerome Robert (Bitbucket: jeromerobert, GitHub: jeromerobert).


Some thoughts about this feature request:

  • I like it because it allows to capture file usage on boxes where kdirstat is not installed
  • I was thinking to implement it as an alternative KCacheReader but the API does not fit.
  • Need to add a button to the File menu "Read du output"
  • Need to add a command line argument
  • du output doesn't make the difference between files and directories, so we will have to concider all leaves as files even if some are directories.
  • All file actions (copy, open with, delete, ...) will have to be disabled
  • du output will have to be in bytes (created with -B1 or -b options)

jeromerobert avatar Dec 10 '13 12:12 jeromerobert

Original comment by Andrea (Bitbucket: eadmaster, GitHub: eadmaster).


to be more flexible, this could be turned into a "generic plaintext import": the user defines a regular expression like "%filename% %size% %YYMMDD%" then the program parses the input file one-line at a time trying to match the regexp. Obviously if the input file does not contains filesizes the treemap cannot be rendered.

jeromerobert avatar May 05 '14 16:05 jeromerobert