Unipath icon indicating copy to clipboard operation
Unipath copied to clipboard

An object-oriented approach to Python file/directory operations.

Results 10 Unipath issues
Sort by recently updated
recently updated
newest added

Hi, I often use Unipath in my codes. I think that the tag in README.html needs to be modified. Thank you.

There is a small typo in test.py. Should read `temporary` rather than `temprorary`.

When we need to copy a file to a directory and I use `src.copy(dst)` I get a `IsADirectoryError: [Errno 21] Is a directory` error from `shutil.copyfile`. This means I cannot...

Python 2.7.12 ``` >>> import marshal >>> import unipath >>> path=unipath.Path('/home') >>> marshal.dumps(path) 's\x05\x00\x00\x00/home' ``` Python 3.5.2 ``` >>> import marshal >>> import unipath >>> path=unipath.Path('/home') >>> marshal.dumps(path) Traceback (most...

Addresses #24 - Now handles python 3.6 DirEntry and pathlib.Path - AbstractPath probably doesn't need `__fspath__()` since it already extends `str` and anything handling `os.PathLike` probably has strings as a...

Python 3.6 introduced PEP 519 Short summary in python 3.6 here: https://docs.python.org/3/whatsnew/3.6.html#pep-519-adding-a-file-system-path-protocol ``` import unipath import pathlib print(unipath.Path('a', 'b', pathlib.Path('c', 'd'))) ``` Presently the above code would fail with `TypeError:...

Hi, In the docs you mention `real_path`, but it doesn't work for me: ``` >>> p = Path('/run/media') # it's a link on my machine >>> p.real_path() Traceback (most recent...

I find `Path.rel_path_to()` method to be quite confusing. Consider the following example: ``` In [27]: %paste from unipath import Path p1 = Path('/a/b') p2 = Path('/a/b/c/d') print p1.rel_path_to(p2) ## --...

Path.copy_stat always copies both mtime/atime and mode, regardless of the `times` and `perms` args it is passed. Given the implementation of Path.copy, this means only times=True,perms=True and times=False,perms=False work properly....