Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parent of RemotePath returns broken object #19

Open
kayibal opened this issue May 12, 2020 · 0 comments
Open

Parent of RemotePath returns broken object #19

kayibal opened this issue May 12, 2020 · 0 comments

Comments

@kayibal
Copy link
Contributor

kayibal commented May 12, 2020

path = RemotePath('memory://root/dir/file.txt')
directory = path.parent
other = directory / 'test.txt'

Results in

Traceback (most recent call last):
  File "<input>", line 3, in <module>
  File "/Users/kayibal/miniconda3/envs/curation/lib/python3.8/pathlib.py", line 926, in __truediv__
    return self._make_child((key,))
  File "/Users/kayibal/code/datarevenue/drfs/drfs/path.py", line 126, in _make_child
    res._storage_options = self._storage_options
AttributeError: 'RemotePath' object has no attribute '_storage_options'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant