mirror of https://github.com/restic/restic.git
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.go | ||
backend_test.go | ||
cache.go | ||
dir.go | ||
dir_test.go | ||
file.go | ||
file_test.go | ||
testing.go |