restic / rest-server

Rest Server is a high performance HTTP server that implements restic's REST backend API.
BSD 2-Clause "Simplified" License
922 stars 138 forks source link

Ignore unexpected files in intermediate directories #221

Closed MichaelEischer closed 1 year ago

MichaelEischer commented 1 year ago

What is the purpose of this change? What does it change?

Listing the data/ folder in a repository no longer fails if it contains files in the data/ folder. This also ignores .DS_Store files created by macOS.

Was the change discussed in an issue or in the forum before?

Fixes #219.

Checklist

MichaelEischer commented 1 year ago

Looks like we had zero test coverage for listBlobsV2(). I've added a basic test that checks that unexpected files don't cause problems for both listBlobsV1 and V2.

MichaelEischer commented 1 year ago

LGTM.

hollie commented 1 year ago

Thank you Michael!