mirror of
https://github.com/rclone/rclone.git
synced 2024-12-23 23:49:15 +01:00
9f96c0d4ea
The Swift backend does not always respect the flag telling it to skip HEADing zero-length objects. This commit fixes that for ls/lsl/lsf. Swift returns zero length for dynamic large object files when they're included in a files lookup, which means that determining their size requires HEADing each file that returns a size of zero. rclone's --swift-no-large-objects instructs rclone that no large objects are present and accordingly rclone should not HEAD files that return zero length. When rclone is performing an ls / lsf / lsl type lookup, however, it continues to HEAD any zero length objects it encounters, even with this flag set. Accordingly, this change causes rclone to respect the flag in these situations. NB: It is worth noting that this will cause rclone to incorrectly report zero length for any dynamic large objects encountered with the --swift-no-large-objects flag set. |
||
---|---|---|
.. | ||
auth.go | ||
swift_internal_test.go | ||
swift_test.go | ||
swift.go |