"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
fs: Implement PartialUploads feature flag
Janne Hellstencc012235351f
diff --git a/backend/ftp/ftp.go b/backend/ftp/ftp.goindex 7aa9935c5..7db6437e3 100644--- a/backend/ftp/ftp.go+++ b/backend/ftp/ftp.go@@ -580,6 +580,7 @@ func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (ff fs.Fs}f.features = (&fs.Features{CanHaveEmptyDirectories: true,+ PartialUploads: true,}).Fill(ctx, f)// set the pool drainer timer goingif f.opt.IdleTimeout > 0 {diff --git a/backend/local/local.go b/backend/local/local.goindex 4acb1b788..a83a3c455 100644--- a/backend/local/local.go+++ b/backend/local/local.go@@ -303,6 +303,7 @@ func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (fs.Fs, eWriteMetadata: true,UserMetadata: xattrSupported, // can only R/W general purpose metadata if xattrs are supportedFilterAware: true,+ PartialUploads: true,}).Fill(ctx, f)if opt.FollowSymlinks {f.lstat = os.Statdiff --git a/backend/sftp/sftp.go b/backend/sftp/sftp.goindex 6338534bf..6127a2333 100644--- a/backend/sftp/sftp.go+++ b/backend/sftp/sftp.go@@ -994,6 +994,7 @@ func NewFsWithConnection(ctx context.Context, f *Fs, name string, root string, mf.features = (&fs.Features{CanHaveEmptyDirectories: true,SlowHash: true,+ PartialUploads: true,}).Fill(ctx, f)// Make a connection and pool it to return errors earlyc, err := f.getSftpConnection(ctx)diff --git a/fs/features.go b/fs/features.goindex 8a85c0226..5820b1178 100644--- a/fs/features.go+++ b/fs/features.go@@ -30,6 +30,7 @@ type Features struct {WriteMetadata bool // can write metadata to objectsUserMetadata bool // can read/write general purpose metadataFilterAware 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//