justindujardin / pathy

simple, flexible, offline capable, cloud storage with a Python path-like interface
Apache License 2.0
171 stars 23 forks source link

fix(stat): return BlobStat for all pathy paths #96

Closed justindujardin closed 1 year ago

justindujardin commented 1 year ago

Return BlobStat consistently for local and remote paths.

Changes

BREAKING CHANGE: Previously, when using Pathy.fluid paths that point to local file system paths, Pathy would return an os.stat_result rather than a BlobStat. This made it difficult to treat mixed paths consistently.

Now Pathy returns a BlobStat structure for local and remote paths.

If you need to use os.stat_result, you can still call os.stat(my_path) to access it.

codecov[bot] commented 1 year ago

Codecov Report

Base: 100.00% // Head: 100.00% // No change to project coverage :thumbsup:

Coverage data is based on head (61c6afd) compared to base (ba5b5b3). Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #96 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 6 6 Lines 1125 1159 +34 ========================================= + Hits 1125 1159 +34 ``` | [Impacted Files](https://codecov.io/gh/justindujardin/pathy/pull/96?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Justin+DuJardin) | Coverage Δ | | |---|---|---| | [pathy/\_\_init\_\_.py](https://codecov.io/gh/justindujardin/pathy/pull/96/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Justin+DuJardin#diff-cGF0aHkvX19pbml0X18ucHk=) | `100.00% <100.00%> (ø)` | | | [pathy/about.py](https://codecov.io/gh/justindujardin/pathy/pull/96/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Justin+DuJardin#diff-cGF0aHkvYWJvdXQucHk=) | `100.00% <100.00%> (ø)` | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Justin+DuJardin). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Justin+DuJardin)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 0.10.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: