Browse Source

fix dired-get-file-info

pull/1/head
10sr 12 years ago
parent
commit
3e4f0fe522
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      emacs.el

+ 3
- 3
emacs.el View File

@@ -1248,12 +1248,12 @@ delete; o: select other; j, l: enlarge; h, k: shrink; q: quit."
(defun dired-get-file-info () (defun dired-get-file-info ()
"dired get file info" "dired get file info"
(interactive) (interactive)
(let ((f (dired-get-filename)))
(let ((f (shell-quote-argument (dired-get-filename t))))
(if (file-directory-p f) (if (file-directory-p f)
(progn (progn
(message "calculating du...")
(message "Calculating disk usage...")
(shell-command (concat "du -hsD " (shell-command (concat "du -hsD "
(shell-quote-argument f))))
f)))
(shell-command (concat "file " (shell-command (concat "file "
f))))) f)))))




Loading…
Cancel
Save