-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(stat): return BlobStat for all pathy paths
- implement `stat` in `BasePath` and yield `BlobStat`s instead of `os.stat_result`. - implement all the pathlib file mode checking helpers because they use `self.stat()` internally which doesn't work with BlobStats. - add tests for base path helpers - update CLI test to assert that stats are BlobStat now 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 difficulty 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.
- Loading branch information
1 parent
e310e5e
commit 89e7a35
Showing
3 changed files
with
129 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters