mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 16:34:30 +01:00
2f5a2d3c48
Before this change the newObject* functions could return object=nil with err=nil. The result of these functions are passed outside of the backend code (eg in Copy, Move) and returning a nil object with a nil error leads to crashes elsewhere as it breaks expectations. After this change we return (nil, fs.ErrorObjectNotFound) in these cases. The one place this is actually needd internally (when turning items into listings) we detect that error and use it to mean skip the directory item. This problem was noticed while testing the shortcuts code. It shouldn't happen normally but it is conceivable it could. |
||
---|---|---|
.. | ||
test | ||
drive_internal_test.go | ||
drive_test.go | ||
drive.go | ||
upload.go |