Skip to content

Commit af69502

Browse files
committed
Fix getting file info err during phys restore
1 parent fb9b1c9 commit af69502

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pbm/storage/fs/fs.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,10 @@ func (fs *FS) List(prefix, suffix string) ([]storage.FileInfo, error) {
198198

199199
info, err := entry.Info()
200200
if err != nil {
201+
if errors.Is(err, os.ErrNotExist) {
202+
// file was removed in the meantime, and that's fine
203+
return nil
204+
}
201205
return errors.Wrap(err, "getting file info")
202206
}
203207
if info.IsDir() {

0 commit comments

Comments
 (0)