(elmo-folder-list-subfolders): Use `directory-files'
authorhmurata <hmurata>
Mon, 20 Sep 2004 05:40:57 +0000 (05:40 +0000)
committerhmurata <hmurata>
Mon, 20 Sep 2004 05:40:57 +0000 (05:40 +0000)
instead of `elmo-list-subdirectories'.

elmo/ChangeLog
elmo/elmo-nmz.el

index 3f78034..7242b94 100644 (file)
@@ -1,3 +1,8 @@
+2004-09-20  Hiroya Murata  <lapis-lazuli@pop06.odn.ne.jp>
+
+       * elmo-nmz.el (elmo-folder-list-subfolders): Use `directory-files'
+       instead of `elmo-list-subdirectories'.
+
 2004-09-20  Yoichi NAKAYAMA  <yoichi@geiin.org>
 
        * elmo-nmz.el (elmo-folder-initialize): Enable "[" for access
index 28b59b9..aef572e 100644 (file)
@@ -238,9 +238,12 @@ If the value is a list, all elements are used as index paths for namazu."
 (luna-define-method elmo-folder-list-subfolders ((folder elmo-nmz-folder)
                                                 &optional one-level)
   (mapcar (lambda (name) (elmo-recover-string-from-filename name))
-         (elmo-list-subdirectories (expand-file-name "nmz"
-                                                     elmo-msgdb-directory)
-                                   "" t)))
+         (directory-files (expand-file-name "nmz" elmo-msgdb-directory)
+                          nil
+                          (concat
+                           "^"
+                           (regexp-quote
+                            (elmo-folder-prefix-internal folder))))))
 
 (require 'product)
 (product-provide (provide 'elmo-nmz) (require 'elmo-version))