--- a/lib/folder.py Wed Jan 16 18:44:03 2008 +0000
+++ b/lib/folder.py Thu Jan 17 01:56:04 2008 +0000
@@ -35,17 +35,6 @@
return os.path.join(*(['..']*count))
-def isImage (fname) :
- """
- Is the given filename likely to be an image file?
- """
-
- fname = fname.lower()
- base, ext = os.path.splitext(fname)
- ext = ext.lstrip('.')
-
- return ext in settings.IMAGE_EXTS
-
class Folder (object) :
def __init__ (self, name='.', parent=None) :
# the directory name, no trailing /
@@ -139,7 +128,7 @@
self.alive = True
# handle images
- elif os.path.isfile(fpath) and isImage(fname) :
+ elif os.path.isfile(fpath) and utils.isImage(fname) :
index.debug("Found image %s", fname)
self.images[fname] = image.Image(self, fname)
@@ -317,4 +306,4 @@
# recurse into subdirs
for dir in self.subdirs.itervalues() :
dir.render()
-
\ No newline at end of file
+