ranger.el
ranger.el copied to clipboard
Ranger fails to calculate file/directory size
In function ranger--get-file-sizes
, there is a typo in the regex: [a-za-z]
should be [A-Za-z]
.
Plus, this won't work if the current locale is not English, since it search for the string "total". I personally workaround it by setting environment variable to English before calling ranger-show-size
and then switch back, but I don't think it a good solution.
While debugging, I found a package named "dired-du", maybe it is a good idea to take a look?