mirror of
https://github.com/octoleo/restic.git
synced 2024-11-30 00:33:57 +00:00
ce902aac67
Instead of first checking whether a file is in the repository cache and then opening it, we just can open the file. This saves one stat call. If the file is in the cache, everything is fine and otherwise the code follows its normal fallback path. |
||
---|---|---|
.. | ||
backend_test.go | ||
backend.go | ||
cache.go | ||
dir_test.go | ||
dir.go | ||
file_test.go | ||
file.go | ||
testing.go |