postlund / pyatv

A client library for Apple TV and AirPlay devices
https://pyatv.dev
MIT License
839 stars 91 forks source link

storage: Add FileStorage.default_storage #2169

Closed postlund closed 9 months ago

postlund commented 10 months ago

This is the default storage used internally by pyatv, but is also open for everyone else to use. There were some issues with paths on Windows, so this solves that as the path is platform agnostic.

codecov[bot] commented 10 months ago

Codecov Report

Patch coverage: 75.00% and project coverage change: -0.03% :warning:

Comparison is base (621adff) 88.98% compared to head (03a3ffb) 88.95%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #2169 +/- ## ========================================== - Coverage 88.98% 88.95% -0.03% ========================================== Files 167 167 Lines 11335 11339 +4 ========================================== + Hits 10086 10087 +1 - Misses 1249 1252 +3 ``` | [Files Changed](https://app.codecov.io/gh/postlund/pyatv/pull/2169?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Pierre+St%C3%A5hl) | Coverage Δ | | |---|---|---| | [pyatv/storage/file\_storage.py](https://app.codecov.io/gh/postlund/pyatv/pull/2169?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Pierre+St%C3%A5hl#diff-cHlhdHYvc3RvcmFnZS9maWxlX3N0b3JhZ2UucHk=) | `97.29% <75.00%> (-2.71%)` | :arrow_down: | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/postlund/pyatv/pull/2169/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Pierre+St%C3%A5hl)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.