diff --git a/backend/netstorage/netstorage.go b/backend/netstorage/netstorage.go index 108c03596..8e0426171 100755 --- a/backend/netstorage/netstorage.go +++ b/backend/netstorage/netstorage.go @@ -923,9 +923,7 @@ func (f *Fs) netStorageStatRequest(ctx context.Context, URL string, directory bo entrywanted := (directory && files[i].Type == "dir") || (!directory && files[i].Type != "dir") if entrywanted { - filestamp := files[0] - files[0] = files[i] - files[i] = filestamp + files[0], files[i] = files[i], files[0] } } return files, nil