forked from TrueCloudLab/rclone
http: fix race introduced in 7982aaf151
This commit is contained in:
parent
3b68340eac
commit
1a16849df0
1 changed files with 1 additions and 1 deletions
|
@ -456,7 +456,7 @@ func (f *Fs) List(ctx context.Context, dir string) (entries fs.DirEntries, err e
|
||||||
fs: f,
|
fs: f,
|
||||||
remote: remote,
|
remote: remote,
|
||||||
}
|
}
|
||||||
switch err = file.stat(ctx); err {
|
switch err := file.stat(ctx); err {
|
||||||
case nil:
|
case nil:
|
||||||
add(file)
|
add(file)
|
||||||
case fs.ErrorNotAFile:
|
case fs.ErrorNotAFile:
|
||||||
|
|
Loading…
Add table
Reference in a new issue