Description
directory is the current directory object.
The object class is
Directory which inherits of all properties from the
File class.
Examples
<h1 py:sub="directory.title>Title</h1> get directory title
<li py:sub="for image in directory.list(type='image')"> loop on each image in the current directory
Attributes
- title
- directory name
Methods
- list(pattern)
- list all objects matching pattern (e.g. '*.jpg')
- list(type=objtype)
- list all objects of type objtype (valid types are
'file',
'directory',
'html',
'text',
'csv',
'image',
'audio')