Changeset 375
- Timestamp:
- 02/04/07 06:46:09 (2 years ago)
- Files:
-
- pyndexter/trunk/pyndexter/sources/file.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
pyndexter/trunk/pyndexter/sources/file.py
r374 r375 8 8 9 9 """ 10 A document source for local filesystem. Accepts three 10 A document source for local filesystem. Accepts three optional arguments: 11 12 include=<glob> 13 exclude=<glob> 14 predicate=<function> 15 16 Any files not excluded by the exclude pattern and included by the include 17 pattern will match. 11 18 """ 12 19 … … 20 27 21 28 class FileSource(Source): 29 """ Expose a subset of the file system for searching. """ 30 22 31 def __init__(self, framework, path, include=None, exclude=None, predicate=None): 23 """ Expose a subset of the file system for searching. """24 32 Source.__init__(self, framework, include, exclude, predicate) 25 33 self.path = os.path.normpath(path)
