From 308290aa272fff106c81d1f4ae51b76190d8fe12 Mon Sep 17 00:00:00 2001 From: Michael Olson Date: Sun, 19 Nov 2006 04:19:00 +0000 Subject: Don't add subdirectories for directory and playlist-directory source insert methods darcs-hash:20061119041900-1bfb2-8adccc41afb392449ac47e4c216d26d640d6b4d5.gz --- emms-source-file.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'emms-source-file.el') 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)))) -- cgit v1.2.3