Script generator :: Class Dir
[hide private]
[frames] | no frames]

Class Dir

Directory class.

Instance Methods [hide private]
 
__init__(self, path, parent, root)
This ctor is called recursively to implement the recursive find.
 
visit(self, functor)
 
getAllImages(self)
Gathers and returns all images in this directory and in its subdirectories.
 
getAllDirs(self)
Gathers and returns all dirnames and subdirnames from this directory.
 
hasImages(self)
Returns true if this directory has images, or if any of it subdirectories has images.
Method Details [hide private]

__init__(self, path, parent, root)
(Constructor)

 

This ctor is called recursively to implement the recursive find.

This returns a directory object. It expects the absolute path to the root and a relative directory name.