Enhancements:
- Add documentation to sdist (by @ghisvail, #20)
- Run tests with UTF-8 path encoding (this means they'll pass even on a machine with ASCII locale)
Enhancements:
- Don't follow symlinks in
recursedir()
- Allow
recursedir()
to keep going by passing it ahandle_errors
callback instead of letting it raise.
Behavior change:
recursedir()
now doesn't follow symlinks unless you setfollow_links=True
explicitely
Enhancements:
- Add a
Pattern
class, exposing pattern-matching outside of directory listing.
Bugfixes:
- Fixes a
rel_path_to()
bug on Python 3 - Fixes
'.'.rel_path_to('.')
exception - Fixes
tempfile()
andtempdir()
not accepting Path as 'dir' parameter
Features:
- unicode() conversion uses
surrogateescape
on Python 3
Bugfixes:
- Fixes recursedir()'s recursing on too many folders
Features:
- chown() now has 'no change' defaults for uid and gid
- Adds '+' operator to add a string to the end of the name of a path
- Adds
Path#rewrite()
context-manager, for rewriting a file in-place
Features:
- Extended glob filters (à la git, /some/dir*/**/*.log)
- Python 3.2 compatibility
Bugfixes:
- Fixes non-working
Path#rel_path_to()
.
Features:
- Adds
pattern
parameter tolistdir()
andrecursedir()
Bugfixes:
- Adds missing
__all__
lists - Actually prevents the creation of
AbstractPath
directly (thanks to VnC-)
Features:
- Adds comparison operators
Bugfixes:
Path.read_link()
didn't work at all.AbstractPath.__eq__()
now returns False instead of raising TypeError if the objects are not compatible.
Features:
- Adds
AbstractPath.lies_under()
Path.open()
usesio.open()
. It now accepts the buffering, encoding, errors, newline, closefd and opener arguments, and will return unicode instead of bytes if opened in text mode (the default) on Python 2.
Bugfixes:
- Makes
__hash__
usenormcase
(like__eq__
does). - Removes
AbstractPath.relative()
since it only worked forPath
anyway. - Fixes
*atime
methods.
Features:
- Adds docstrings everywhere. There is some HTML documentation at ReadTheDocs: http://rpaths.remram.fr/
- Basic functionality.
- Stores paths as
unicode
orbytes
depending on path type. AbstractPath
/Path
separation.