class documentation
class LocalDirectory(Container): (source)
Constructor: LocalDirectory(path, writable)
A resource directory that reads files from a filesystem directory.
Data is indexed once on initialization; you need to explicitly call reindex() to refresh the file list if you change the contents of the directory outside of the LocalDirectory instance.
Missing/non-existent directories are allowed for reading.
If you initialize with writable=True, the directory will be created if it does not exist.
This class implements a read-write mapping interface but if you intend to modify the directory contents, you must initialize it with writable=True.
| Parameters | |
| path | The filesystem path to the resource directory. |
| Method | __delitem__ |
Undocumented |
| Method | __getitem__ |
Undocumented |
| Method | __init__ |
Undocumented |
| Method | __iter__ |
Undocumented |
| Method | __len__ |
Undocumented |
| Method | __repr__ |
Undocumented |
| Method | __setitem__ |
Undocumented |
| Method | reindex |
Undocumented |
| Instance Variable | _files |
Undocumented |
| Instance Variable | _path |
Undocumented |
| Instance Variable | _writable |
Undocumented |