cache: Use walk.ListR for listing the temporary Fs.

This commit is contained in:
Nick Craig-Wood 2019-01-21 17:02:12 +00:00
parent 4376019062
commit 47099466c0
2 changed files with 3 additions and 3 deletions

View file

@ -1023,7 +1023,7 @@ func (b *Persistent) ReconcileTempUploads(cacheFs *Fs) error {
}
var queuedEntries []fs.Object
err = walk.Walk(cacheFs.tempFs, "", true, -1, func(path string, entries fs.DirEntries, err error) error {
err = walk.ListR(cacheFs.tempFs, "", true, -1, walk.ListObjects, func(entries fs.DirEntries) error {
for _, o := range entries {
if oo, ok := o.(fs.Object); ok {
queuedEntries = append(queuedEntries, oo)