Nick Craig-Wood
4023eaebe0
gcs: fix directory marker code #3453
...
Use Update to upload the directory markers
2023-05-07 12:47:09 +01:00
Nick Craig-Wood
baf16a65f0
s3: fix directory marker code #3453
...
Use Update to upload the directory markers
2023-05-07 12:47:09 +01:00
Nick Craig-Wood
70fe2ac852
azureblob: fix azure blob uploads with multiple bits of metadata
2023-05-07 12:47:09 +01:00
Nick Craig-Wood
41cf7faea4
Add Andrei Smirnov to contributors
2023-05-07 12:47:09 +01:00
Andrei Smirnov
f226f2dfb1
s3: add petabox.io to s3 providers
2023-05-05 09:44:25 +01:00
Nick Craig-Wood
31caa019fa
rc: fix output of Time values in options/get
...
Before this change these were output as `{}` after this change they
are output as time strings `"2022-03-26T17:48:19Z"` in standard
javascript format.
2023-05-04 15:04:11 +01:00
Nick Craig-Wood
0468375054
uptobox: ensure files and folders show the modtime configured by --default-time #6986
2023-05-04 15:03:11 +01:00
Nick Craig-Wood
6001f05a12
union: the root folder shows the modtime configured by --default-time #6986
2023-05-04 15:03:11 +01:00
Nick Craig-Wood
f7b87a8049
koofr: ensure folders show the modtime configured by --default-time #6986
2023-05-04 15:03:11 +01:00
Nick Craig-Wood
d379641021
http: ensure folders show the modtime configured by --default-time #6986
2023-05-04 15:03:11 +01:00
Nick Craig-Wood
84281c9089
dropbox: ensure folders show the modtime configured by --default-time #6986
2023-05-04 15:03:11 +01:00
Nick Craig-Wood
8e2dc069d2
fs: Add --default-time flag to control unknown modtime of files/dirs
...
Before this patch, files or directories with unknown modtime would
appear as the current date.
When mounted some systems look at modification dates of directories to
see if they change and having them change whenever they drop out of
the directory cache is not optimal.
See #6986
2023-05-04 15:03:11 +01:00
Nick Craig-Wood
61d6f538b3
onedrive: add --onedrive-av-override flag to download files flagged as virus
...
This also produces a warning when rclone detects files have been
blocked because of virus content
server reports this file is infected with a virus - use --onedrive-av-override to download anyway
Fixes #557
2023-05-03 15:21:30 +01:00
Nick Craig-Wood
65b2e378e0
drive: fix incorrect remote after Update on object
...
Before this change, when Object.Update was called in the drive
backend, it overwrote the remote with that of the object info.
This is incorrect - the remote doesn't change on Update and this patch
fixes that and introduces a new test to make sure it is correct for
all backends.
This was noticed when doing Update of objects in a nested combine
backend.
See: https://forum.rclone.org/t/rclone-runtime-goroutine-stack-exceeds-1000000000-byte-limit/37912
2023-05-03 13:51:27 +01:00
Nick Craig-Wood
dea6bdf3df
combine: fix goroutine stack overflow on bad object
...
If the Remote() call failed to do its path adjustment, then it would
recursively call Remote() as part of logging the failure and cause a
stack overflow.
This fixes it by logging the underlying object instead.
See: https://forum.rclone.org/t/rclone-runtime-goroutine-stack-exceeds-1000000000-byte-limit/37912
2023-05-03 13:51:27 +01:00
Nick Craig-Wood
27eb8c7f45
config: stop config create making invalid config files
...
If config create was passed a parameter with an embedded \n it wrote
it straight to the config file which made it invalid and caused a
fatal error reloading it.
This stops keys and values with \r and \n being added to the config
file.
See: https://forum.rclone.org/t/how-to-control-bad-remote-creation-which-takes-rclone-down/37856
2023-05-03 11:40:30 +01:00
Nick Craig-Wood
1607344613
Add Adam K to contributors
2023-05-03 11:40:30 +01:00
Adam K
5f138dd822
dropbox: syncing documentation with source for dropbox default batch_timeout - fixes #6984
2023-05-02 17:04:32 +01:00
Anagh Kumar Baranwal
2520c05c4b
mount2: disable xattrs
...
Signed-off-by: Anagh Kumar Baranwal <6824881+darthShadow@users.noreply.github.com>
2023-04-30 17:56:47 +01:00
Anagh Kumar Baranwal
f7f5e87632
mount2: fixed statfs
...
Signed-off-by: Anagh Kumar Baranwal <6824881+darthShadow@users.noreply.github.com>
2023-04-30 17:56:47 +01:00
Anagh Kumar Baranwal
a7e6806f26
mount2: updated go-fuse version
...
Signed-off-by: Anagh Kumar Baranwal <6824881+darthShadow@users.noreply.github.com>
2023-04-30 17:56:47 +01:00
Anagh Kumar Baranwal
d0eb884262
mount: removed unnecessary byte slice allocation for reads
...
Signed-off-by: Anagh Kumar Baranwal <6824881+darthShadow@users.noreply.github.com>
2023-04-30 17:54:30 +01:00
WeidiDeng
ae6874170f
webdav: set modtime using propset for owncloud and nextcloud
2023-04-28 17:38:49 +01:00
Nick Craig-Wood
f5bab284c3
s3: fix missing "tier" metadata
...
Before this change if the storage class wasn't set on the object, we
didn't set the "tier" metadata.
This made it impossible to filter on tier using the metadata filters.
This returns the "tier" metadata as STANDARD if the storage class
isn't set on the object.
See: https://forum.rclone.org/t/copy-from-s3-to-another-s3-filter-by-storage-class/37861
2023-04-28 14:33:01 +01:00
Nick Craig-Wood
c75dfa6436
Add Jānis Bebrītis to contributors
2023-04-28 14:33:01 +01:00
Nick Craig-Wood
56eb82bdfc
Add Tobias Gion to contributors
2023-04-28 14:33:01 +01:00
Nick Craig-Wood
066e00b470
gcs: empty directory markers #3453
...
- Report correct feature flag
- Fix test failures due to that
- don't output the root directory marker
- Don't create the directory marker if it is the bucket or root
- Create directories when uploading files
2023-04-28 14:31:05 +01:00
Jānis Bebrītis
e0c445d36e
gcs: empty directory markers - #3453
2023-04-28 14:31:05 +01:00
Nick Craig-Wood
74652bf318
s3: empty directory markers further work #3453
...
- Report correct feature flag
- Fix test failures due to that
- don't output the root directory marker
- Don't create the directory marker if it is the bucket or root
- Create directories when uploading files
2023-04-28 14:31:05 +01:00
Jānis Bebrītis
b6a95c70e9
s3: empty directory markers - #3453
2023-04-28 14:31:05 +01:00
Nick Craig-Wood
aca7d0fd22
s3: fix potential crash in integration tests
2023-04-28 14:31:05 +01:00
Nick Craig-Wood
12761b3058
fstests: make integration tests work with connection strings in remotes
2023-04-28 14:31:05 +01:00
Nick Craig-Wood
3567a47258
fs: make ConfigString properly reverse suffixed file systems
...
Before this change we renamed file systems with overridden config with
{suffix}.
However this meant that ConfigString produced a value which wouldn't
re-create the file system.
This uses an internal hash to keep note of what config goes which
which {suffix} in order to remake the config properly.
2023-04-28 14:31:05 +01:00
Nick Craig-Wood
6b670bd439
mockfs: make it so it can be registered as an Fs
2023-04-28 14:31:05 +01:00
Nick Craig-Wood
335ca6d572
lsjson: make --stat more efficient
...
Don't look for a file if the remote ends with /
This also makes it less likely to find a directory marker in bucket
based file systems.
2023-04-28 14:31:05 +01:00
Tobias Gion
c4a9e480c9
ftp: lower log message priority when SetModTime is not supported to debug
...
See: https://forum.rclone.org/t/ftp-fritz-box-setmodtime-is-not-supported/37781
2023-04-25 16:31:42 +02:00
Nick Craig-Wood
232d304c13
drive: fix trailing slash mis-identificaton of folder as file
...
Before this change, drive would mistakenly identify a folder with a
training slash as a file when passed to NewObject.
This was picked up by the integration tests
2023-04-25 12:10:15 +01:00
Nick Craig-Wood
44ac79e357
Add dlitster to contributors
2023-04-25 12:10:15 +01:00
dlitster
0487e465ee
docs: s3: clarify that X-Amz-Meta-Md5chksum is really a base64-encoded hex
2023-04-25 11:39:36 +01:00
Nick Craig-Wood
bb6cfe109d
crypt: fix reading 0 length files
...
In an earlier patch
d5afcf9e34
crypt: try not to return "unexpected EOF" error
This introduced a bug for 0 length files which this fixes which only
manifests if the io.Reader returns data and EOF which not all readers
do.
This was failing in the integration tests.
2023-04-24 16:54:40 +01:00
WeidiDeng
864eb89a67
webdav: fix server side copy/move not overwriting - fixes #6964
2023-04-24 14:35:42 +01:00
Nick Craig-Wood
4471e6f258
selfupdate: obey --no-check-certificate flag
...
This patch makes sure we use our own HTTP transport when fetching the
current rclone version.
This allows it to use --no-check-certificate (and any other features
of our own transport).
See: https://forum.rclone.org/t/rclone-selfupdate-no-check-certificate-flag-not-work/37501
2023-04-24 12:26:01 +01:00
Nick Craig-Wood
e82db0b7d5
vfs: fix potential data race - Fixes #6962
...
This fixes a data race that was found by static analysis.
2023-04-24 12:17:03 +01:00
Nick Craig-Wood
72e624c5e4
serve dlna: fix potential data race #6962
...
This fixes a data race that was found by static analysis.
2023-04-24 12:17:03 +01:00
Nick Craig-Wood
6092fa57c3
Add Loren Gordon to contributors
2023-04-24 12:17:03 +01:00
Loren Gordon
3e15a594b7
cat: adds --separator option to cat command
...
When using `rclone cat` to print the contents of several files, the
user may want to inject some separator between the files, such as a
comma or a newline. This patch adds a `--separator` option to the `cat`
command to make that possible. The default value remains an empty
string, `""`, maintaining the prior behavior of `rclone cat`.
Closes #6968
2023-04-24 12:01:53 +01:00
Nick Craig-Wood
db8c007983
swift: ignore 404 error when deleting an object
...
See: https://forum.rclone.org/t/rclone-should-optionally-ignore-404-for-delete/37592
2023-04-22 10:49:10 +01:00
dependabot[bot]
5836da14c2
build(deps): bump github.com/aws/aws-sdk-go from 1.44.236 to 1.44.246
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.44.236 to 1.44.246.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.236...v1.44.246 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-04-20 18:03:27 +01:00
dependabot[bot]
8ed07d11a0
build(deps): bump github.com/klauspost/compress from 1.16.3 to 1.16.5
...
Bumps [github.com/klauspost/compress](https://github.com/klauspost/compress ) from 1.16.3 to 1.16.5.
- [Release notes](https://github.com/klauspost/compress/releases )
- [Changelog](https://github.com/klauspost/compress/blob/master/.goreleaser.yml )
- [Commits](https://github.com/klauspost/compress/compare/v1.16.3...v1.16.5 )
---
updated-dependencies:
- dependency-name: github.com/klauspost/compress
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-04-20 18:03:18 +01:00
dependabot[bot]
1f2ee44c20
build(deps): bump golang.org/x/term from 0.6.0 to 0.7.0
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/golang/term/releases )
- [Commits](https://github.com/golang/term/compare/v0.6.0...v0.7.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/term
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-04-20 18:02:43 +01:00