diff options
-rw-r--r-- | emms-source-file.el | 5 | ||||
-rw-r--r-- | emms-source-playlist.el | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/emms-source-file.el b/emms-source-file.el index 7a395bd..e3c8a59 100644 --- a/emms-source-file.el +++ b/emms-source-file.el @@ -118,8 +118,9 @@ from the user." emms-source-file-default-directory t))) (mapc (lambda (file) - (unless (let ((case-fold-search nil)) - (string-match emms-source-file-exclude-regexp file)) + (unless (or (let ((case-fold-search nil)) + (string-match emms-source-file-exclude-regexp file)) + (file-directory-p file)) (emms-playlist-insert-track (emms-track 'file (expand-file-name file))))) (directory-files dir t (emms-source-file-regex)))) diff --git a/emms-source-playlist.el b/emms-source-playlist.el index e299e07..a123cf7 100644 --- a/emms-source-playlist.el +++ b/emms-source-playlist.el @@ -450,8 +450,9 @@ If DIR is not specified, it is queried from the user." emms-source-file-default-directory t))) (mapc (lambda (file) - (unless (let ((case-fold-search nil)) - (string-match emms-source-file-exclude-regexp file)) + (unless (or (let ((case-fold-search nil)) + (string-match emms-source-file-exclude-regexp file)) + (file-directory-p file)) (emms-playlist-insert-track (emms-track 'playlist (expand-file-name file))))) (directory-files dir t "^[^.]"))) |