Before this fix the smb backend could panic if a stat call failed. This fix makes it return an error instead. It should have the side effect that we do one less stat call on upload too. Fixes #8106
Before this fix the smb backend could panic if a stat call failed. This fix makes it return an error instead. It should have the side effect that we do one less stat call on upload too. Fixes #8106