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

upath._stat: add a os.stat_result compatible fsspec info wrapper #179

Merged
merged 5 commits into from Feb 10, 2024

Conversation

ap--
Copy link
Collaborator

@ap-- ap-- commented Feb 10, 2024

Closes #145

This PR provide a duck-typed os.stat_result class UPathStatResult that wraps fsspec info dicts and tries to convert info entries to their corresponding st_* attributes if available.

For retrieving the original info dict, it provides a .as_info() method.

@ap-- ap-- merged commit a98c507 into fsspec:main Feb 10, 2024
18 checks passed
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

Successfully merging this pull request may close these issues.

Different return types for S3Path.stat() and WindowsUPath.stat()
1 participant