Browse files

better to use file-accessible-directory-p instead of file-directory-p

  • Loading branch information...
1 parent dce0619 commit 0ab8d2200ea01c831a56e03dec03138845c837b4 @alexott alexott committed Feb 8, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 ecb-file-browser.el
@@ -1940,7 +1940,7 @@ and IGNORE-CASE return a function which can be used as argument for `sort'."
"Return a cons cell where car is a list of all files to display in DIR and
cdr is a list of all subdirs to display in DIR. Both lists are sorted
according to `ecb-sources-sort-method'."
- (when (file-directory-p dir)
+ (when (file-accessible-directory-p dir)
(or (ecb-files-and-subdirs-cache-get dir)
;; dir is not cached
(let ((files (ecb-directory-files dir nil nil t))

0 comments on commit 0ab8d22

Please sign in to comment.