pngtile/store.py
changeset 176 ad32cf3a25fa
parent 166 986052d7d0ce
--- a/pngtile/store.py	Sat Oct 04 03:28:57 2014 +0300
+++ b/pngtile/store.py	Sat Oct 04 15:13:56 2014 +0300
@@ -102,7 +102,7 @@
                     # skip inaccessible dirs
                     continue
 
-                yield name + '/'
+                yield name, None
 
             # examine ext
             if '.' in name:
@@ -113,7 +113,7 @@
 
             # show .png files with a .cache file
             if name_type in self.IMAGE_TYPES and os.path.exists(os.path.join(root, name_base + '.cache')):
-                yield name
+                yield name, name_type
 
     def open (self, url):
         """