fs: Implement PartialUploads feature flag

Implement a Partialuploads feature flag to mark backends for which
uploads are not atomic.

This is set for the following backends

- local
- ftp
- sftp

See #3770
This commit is contained in:
Janne Hellsten
2023-05-09 16:28:10 +01:00
committed by Nick Craig-Wood
parent aaacfa51a0
commit cc01223535
4 changed files with 4 additions and 0 deletions
+1
View File
@@ -30,6 +30,7 @@ type Features struct {
WriteMetadata bool // can write metadata to objects
UserMetadata bool // can read/write general purpose metadata
FilterAware bool // can make use of filters if provided for listing
PartialUploads bool // uploaded file can appear incomplete on the fs while it's being uploaded
// Purge all files in the directory specified
//