Skip to content

VnC-/rpaths

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[Build Status] (https://travis-ci.org/remram44/rpaths)

rpaths

rpaths is yet another path manipulation library.

The [full documentation is built by ReadTheDocs] (http://rpaths.remram.fr/en/latest/).

It pains me that I should have to write this, however after a survey of the existing packages, including [pathlib] (https://docs.python.org/3/library/pathlib.html) (included in the Python standard library since 3.4, see [PEP 428] (http://legacy.python.org/dev/peps/pep-0428/)), it appears that every one of them chokes on one valid filename or another.

  • Unipath is very close. In fact it is, with pathlib, one of the main inspirations for this work. Unfortunately it makes its path inherit from unicode or bytes, which makes the abstract/concrete class separation too tricky.
  • pathlib is affected with [a bug preventing it from representing some filenames on Windows on Python 2] (https://bitbucket.org/pitrou/pathlib/issue/25); this bug was marked as wontfix. Furthermore, it works very differently on Python 2 and 3, which I believe is very counter-productive.
  • path.py is affected with [a bug making it fail when encountering some filenames on POSIX] (jaraco/path#61). This is also believed to allow for DoS attacks.
  • fpath is affected with the same bug as path.py.

About

Yet another filename manipulation library. Aims for total Python 2/3 and POSIX/NT compatibility

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 98.7%
  • Shell 1.3%