*** /home/albinus/.emacs.d/elpa/disk-usage-1.2.0/disk-usage.el.~1~ 2019-02-26 11:50:08.976859553 +0100 --- /home/albinus/.emacs.d/elpa/disk-usage-1.2.0/disk-usage.el 2019-02-26 12:21:11.661869542 +0100 *************** *** 290,298 **** "This is the equivalent of running the shell command $ find . -type f -exec du -sb {} +" (setq directory (or directory default-directory)) ! (let ((pair-strings (split-string (with-temp-buffer (process-file disk-usage--find-command nil '(t nil) nil ! directory "-type" "f" "-exec" disk-usage--du-command --- 290,299 ---- "This is the equivalent of running the shell command $ find . -type f -exec du -sb {} +" (setq directory (or directory default-directory)) ! (let* ((default-directory directory) ! (pair-strings (split-string (with-temp-buffer (process-file disk-usage--find-command nil '(t nil) nil ! (file-local-name directory) "-type" "f" "-exec" disk-usage--du-command *************** *** 301,307 **** "\n" 'omit-nulls))) (cl-loop for pair-string in pair-strings for pair = (split-string pair-string "\t") ! for name = (cadr pair) for attributes = (file-attributes name) when (cl-loop for filter in disk-usage-filters always (funcall filter name attributes)) --- 302,308 ---- "\n" 'omit-nulls))) (cl-loop for pair-string in pair-strings for pair = (split-string pair-string "\t") ! for name = (concat (file-remote-p directory) (cadr pair)) for attributes = (file-attributes name) when (cl-loop for filter in disk-usage-filters always (funcall filter name attributes)) *************** *** 351,357 **** (with-output-to-string (process-file disk-usage--du-command nil '(t nil) nil ! disk-usage--du-args path)) (buffer-string)))))) (defun disk-usage--sort-by-size (a b) --- 352,358 ---- (with-output-to-string (process-file disk-usage--du-command nil '(t nil) nil ! disk-usage--du-args (file-local-name path))) (buffer-string)))))) (defun disk-usage--sort-by-size (a b)