ranger.el icon indicating copy to clipboard operation
ranger.el copied to clipboard

Ranger fails to calculate file/directory size

Open yangsheng6810 opened this issue 6 years ago • 0 comments

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?

yangsheng6810 avatar Mar 13 '18 00:03 yangsheng6810