Skip to content

Commit c486d3a

Browse files
committed
httpfs: special case attr to avoid PullDir on Invalidate since there is no multipart listing for attrs
1 parent c6a4b86 commit c486d3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/httpfs/cacher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ func (fsys *Cacher) InvalidateNode(path string, resync, recursive bool) error {
141141
}
142142
}
143143

144-
if resync {
144+
if resync && !strings.Contains(path, "/:attr") {
145145
_, err := fsys.PullDir(context.Background(), filepath.Dir(path))
146146
return err
147147
}

0 commit comments

Comments
 (0)