Reputation: 16234
I can get the file path with:
(message (file-name-directory (or buffer-file-name load-file-name)))
But if the buffer in dired-mode, the above code evaluates to nil.
How can I get the folder path in dired-mode with elisp?
Upvotes: 7
Views: 2390