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

Make File an os.PathLike #79

Open
jl-wynen opened this issue Mar 22, 2023 · 0 comments
Open

Make File an os.PathLike #79

jl-wynen opened this issue Mar 22, 2023 · 0 comments
Labels
discussion Requires discussion before anything can be implemented enhancement New feature or request

Comments

@jl-wynen
Copy link
Collaborator

By implementing https://docs.python.org/3/library/os.html?highlight=fspath#os.PathLike users could simply open(dset.files[0]).
This would be quite convenient in some cases. But it might also be confusing. Does it open the local or remote file? And it has to raise an exception if local_path is None.

@jl-wynen jl-wynen added enhancement New feature or request discussion Requires discussion before anything can be implemented labels Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Requires discussion before anything can be implemented enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant