rclone/backend
Julian Lepinski 9f96c0d4ea
swift: fix HEADing 0-length objects when --swift-no-large-objects set
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.
2023-08-03 08:38:39 +01:00
..
alias build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
all protondrive: add protondrive backend - fixes #6072 2023-07-22 10:46:21 +01:00
amazonclouddrive build: reformat comments to pass go1.19 vet 2022-08-05 16:35:41 +01:00
azureblob build: update to go1.21rc3 and make go1.19 the minimum required version 2023-07-16 10:09:25 +01:00
b2 rclone config redacted: implement support mechanism for showing redacted config 2023-07-07 16:25:14 +01:00
box box: fix reconnect failing with HTTP 400 Bad Request 2023-07-14 10:24:33 +01:00
cache build: update to go1.21rc3 and make go1.19 the minimum required version 2023-07-16 10:09:25 +01:00
chunker rcat: preserve metadata when Copy falls back to Rcat 2022-11-10 12:04:35 +00:00
combine backend: fix misspellings found by codespell 2023-06-26 14:34:52 +01:00
compress combine,compress,crypt,hasher,union: support wrapping backends with PartialUploads 2023-06-14 10:52:03 +01:00
crypt backend: fix misspellings found by codespell 2023-06-26 14:34:52 +01:00
drive rclone config redacted: implement support mechanism for showing redacted config 2023-07-07 16:25:14 +01:00
dropbox rclone config redacted: implement support mechanism for showing redacted config 2023-07-07 16:25:14 +01:00
fichier fichier: implement DirMove 2023-07-28 01:25:42 +01:00
filefabric rclone config redacted: implement support mechanism for showing redacted config 2023-07-07 16:25:14 +01:00
ftp ftp,sftp: add socks_proxy support for SOCKS5 proxies 2023-07-30 03:02:08 +01:00
googlecloudstorage rclone config redacted: implement support mechanism for showing redacted config 2023-07-07 16:25:14 +01:00
googlephotos fs: move operations.NewOverrideRemote to fs.NewOverrideRemote 2022-11-21 08:02:09 +00:00
hasher combine,compress,crypt,hasher,union: support wrapping backends with PartialUploads 2023-06-14 10:52:03 +01:00
hdfs rclone config redacted: implement support mechanism for showing redacted config 2023-07-07 16:25:14 +01:00
hidrive hidrive: remove unused code (fixes issue reported by the unused linter) 2023-03-26 14:28:15 +02:00
http http: ensure folders show the modtime configured by --default-time #6986 2023-05-04 15:03:11 +01:00
internetarchive rclone config redacted: implement support mechanism for showing redacted config 2023-07-07 16:25:14 +01:00
jottacloud rclone config redacted: implement support mechanism for showing redacted config 2023-07-07 16:25:14 +01:00
koofr rclone config redacted: implement support mechanism for showing redacted config 2023-07-07 16:25:14 +01:00
local operations: fix .rclonelink files not being converted back to symlinks 2023-07-10 14:30:59 +01:00
mailru rclone config redacted: implement support mechanism for showing redacted config 2023-07-07 16:25:14 +01:00
mega rclone config redacted: implement support mechanism for showing redacted config 2023-07-07 16:25:14 +01:00
memory Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
netstorage rclone config redacted: implement support mechanism for showing redacted config 2023-07-07 16:25:14 +01:00
onedrive rclone config redacted: implement support mechanism for showing redacted config 2023-07-07 16:25:14 +01:00
opendrive rclone config redacted: implement support mechanism for showing redacted config 2023-07-07 16:25:14 +01:00
oracleobjectstorage rclone config redacted: implement support mechanism for showing redacted config 2023-07-07 16:25:14 +01:00
pcloud rclone config redacted: implement support mechanism for showing redacted config 2023-07-07 16:25:14 +01:00
pikpak rclone config redacted: implement support mechanism for showing redacted config 2023-07-07 16:25:14 +01:00
premiumizeme rclone config redacted: implement support mechanism for showing redacted config 2023-07-07 16:25:14 +01:00
protondrive protondrive: fix a bug in parsing User metadata (#7174) 2023-07-28 11:03:23 +02:00
putio rclone config redacted: implement support mechanism for showing redacted config 2023-07-07 16:25:14 +01:00
qingstor rclone config redacted: implement support mechanism for showing redacted config 2023-07-07 16:25:14 +01:00
s3 docs: rclone backend restore 2023-07-29 11:31:16 +09:00
seafile rclone config redacted: implement support mechanism for showing redacted config 2023-07-07 16:25:14 +01:00
sftp sftp: support dynamic --sftp-path-override 2023-07-30 03:12:07 +01:00
sharefile rclone config redacted: implement support mechanism for showing redacted config 2023-07-07 16:25:14 +01:00
sia rclone config redacted: implement support mechanism for showing redacted config 2023-07-07 16:25:14 +01:00
smb smb: implement multi-threaded writes for copies to smb 2023-07-25 08:31:36 +01:00
storj rclone config redacted: implement support mechanism for showing redacted config 2023-07-07 16:25:14 +01:00
sugarsync rclone config redacted: implement support mechanism for showing redacted config 2023-07-07 16:25:14 +01:00
swift swift: fix HEADing 0-length objects when --swift-no-large-objects set 2023-08-03 08:38:39 +01:00
union Revert "union: disable PartialUploads on integration tests failures" 2023-06-29 21:11:04 +01:00
uptobox rclone config redacted: implement support mechanism for showing redacted config 2023-07-07 16:25:14 +01:00
webdav webdav: nextcloud: fix segment violation in low-level retry 2023-08-01 11:15:33 +09:00
yandex yandex: fix 400 Bad Request on transfer failure 2023-06-11 11:11:43 +01:00
zoho zoho: fix downloads with Range: header returning the wrong data 2023-06-14 17:43:26 +01:00