Skip to content

Commit

Permalink
Ignore non-existent directories
Browse files Browse the repository at this point in the history
  • Loading branch information
xendk committed Apr 10, 2017
1 parent 5f3953b commit f98deb4
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions ede-php-autoload/class-loader/core.el
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,13 @@ Basically, it returns PROJECT-ROOT/{NS-DIRECTORIES}/RELATIVE-PATH/{PREFIX}*"
dir
(expand-file-name dir project-root))
full-dir (expand-file-name relative-path absolute-dir)
files (append files (directory-files
full-dir
nil
(concat "^" (if (string= prefix "")
"[^.]"
(regexp-quote prefix)))))))
files (when (file-exists-p full-dir)
(append files (directory-files
full-dir
nil
(concat "^" (if (string= prefix "")
"[^.]"
(regexp-quote prefix))))))))
files))

(defun ede-php-autoload--ensure-list (list-or-element)
Expand Down

0 comments on commit f98deb4

Please sign in to comment.