mirror of
https://github.com/restic/restic.git
synced 2025-12-12 06:51:51 +00:00
Add more checks for canceled contexts
This commit is contained in:
@@ -78,6 +78,10 @@ func (d *SnapshotsDir) ReadDirAll(ctx context.Context) ([]fuse.Dirent, error) {
|
||||
}
|
||||
|
||||
for name, entry := range meta.names {
|
||||
if ctx.Err() != nil {
|
||||
return nil, ctx.Err()
|
||||
}
|
||||
|
||||
d := fuse.Dirent{
|
||||
Inode: inodeFromName(d.inode, name),
|
||||
Name: name,
|
||||
|
||||
Reference in New Issue
Block a user