2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-22 21:05:10 +00:00
restic/internal/backend
Felix Lee 944fc857eb Fix failure to detect some legacy s3 repos
Sometimes s3 listobjects for a directory includes an entry for that
directory. The restic s3 backend doesn't expect that and returns
an error.

Symptom is:
  ReadDir: invalid key name restic/key/, removing prefix
     restic/key/ yielded empty string

I'm not sure when s3 does that; I'm unable to reproduce it myself.

But in any case, it seems correct to ignore that when it happens.

Fixes #1068
2017-10-18 13:45:31 -07:00
..
azure Remove Deleter interface 2017-10-14 16:04:29 +02:00
b2 Remove Deleter interface 2017-10-14 16:04:29 +02:00
gs Remove Deleter interface 2017-10-14 16:04:29 +02:00
local backend: Add Delete() to restic.Backend interface 2017-10-14 15:56:25 +02:00
location Merge pull request #1149 from restic/azure-support 2017-08-09 21:30:35 +02:00
mem Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
rest Remove Deleter interface 2017-10-14 16:04:29 +02:00
s3 Fix failure to detect some legacy s3 repos 2017-10-18 13:45:31 -07:00
sftp sftp: Fix Delete() 2017-10-14 16:08:15 +02:00
swift Remove Deleter interface 2017-10-14 16:04:29 +02:00
test Ensure TestDelete runs last 2017-10-14 16:04:29 +02:00
testdata Moves files 2017-07-23 14:19:13 +02:00
backend_error.go backend: Add partial read failure to error backend 2017-10-17 22:11:38 +02:00
backend_retry_test.go backend: Correctly retry Save() calls 2017-10-17 21:46:38 +02:00
backend_retry.go backend: Correctly retry Save() calls 2017-10-17 21:46:38 +02:00
doc.go Moves files 2017-07-23 14:19:13 +02:00
http_transport.go Add REST backend option to use CA root certificate 2017-10-04 22:14:10 +02:00
layout_default.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
layout_rest.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
layout_s3legacy.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
layout_test.go Remove all dot-imports 2017-10-02 15:06:39 +02:00
layout.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
paths.go Moves files 2017-07-23 14:19:13 +02:00
semaphore.go Run goimports 2017-07-23 14:21:03 +02:00
utils_test.go Remove all dot-imports 2017-10-02 15:06:39 +02:00
utils.go Move restic package to internal/restic 2017-07-24 17:43:32 +02:00