Trees | Indices | Help |
|
---|
|
path.py - An object representing a path to a file or directory.
>>> from path import path >>> d = path('/home/guido/bin') >>> for f in d.files('*.py'): >>> f.chmod(0755)
This module requires Python 2.4 or later.
Tree-walking functions don't avoid symlink loops. Matt Harrison sent me a patch for this.
Tree-walking functions can't ignore errors. Matt Harrison asked for this.
- Two people asked for path.chdir(). This just seems wrong to me,
I dunno. chdir() is moderately evil anyway.
Bug in write_text(). It doesn't support Universal newline mode.
- Better error message in listdir() when self isn't a
directory. (On Windows, the error message really sucks.)
Make sure everything has a good docstringc.
Add methods for regex find and replace.
guess_content_type() method?
Could add split() and join() methods that generate warnings.
Version: 3.0
License: Freeware
|
|||
TreeWalkWarning | |||
Path Represents a filesystem path. |
|||
BasePath Represents a filesystem path. |
|||
ConversionPath On windows, python represents paths with backslashes, within maya though, these are slashes We want to keep the original representation, but allow the methods to work nonetheless. |
|
|||
utilities | |||
---|---|---|---|
|
|||
Utilities | |||
|
|
|
Note: use this constructor if you use the Path.set_separator method at runtime to assure you will always create instances of the actual type, and not only of the type you imported last |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Apr 19 18:00:12 2011 | http://epydoc.sourceforge.net |