[Feature request] File size in the GUI
Description: The ability to view the file size within the GUI when reviewing a snapshot. I was backing up the home dir for my work PC, since the power supply started tripping over itself I wanted to make sure I didn't lose anything. I found that this was a pretty big backup, which is fair, and wanted to see what I could exclude to trim away the extra stuff from the backup. Targeting the large dirs first would be logical, then the extra small wins afterwards.
TLDR; it would be good to see dir/file size
restic -r gs:repository:/ ls latest --long
Unfortunately restic doesn't print out the size of folders when running ls. And since we are only fetching the folder when it's openend, we can't add up all the size of files as we would miss the subfolder sizes as well
Ah yep I can see that, I had thought that we could make use of the NCDU option as well to potentially retrieve it in a structure that contains all the sizes, but that needs to be recursive and I can understand why we want to avoid that.
We could potentially add a (i) to there which shows a tooltip regarding how to run your own command to pipe into ncdu and see file sizes for yourself, with the caveat that it is potentially slow which is why it is not implemented in the GUI.
[!TIP]
--ncduis only implemented since v0.17.0
restic -r gs:repository:/ ls latest --ncdu | ncdu -f -