"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
imagekit: add mtime to the available metadata
Nick Craig-Wood55b95489f371
diff --git a/backend/imagekit/imagekit.go b/backend/imagekit/imagekit.goindex 0c8521d0d..44c193ec8 100644--- a/backend/imagekit/imagekit.go+++ b/backend/imagekit/imagekit.go@@ -32,6 +32,12 @@ const ()var systemMetadataInfo = map[string]fs.MetadataHelp{+ "mtime": {+ Help: "Time of last modification, read from the file's updatedAt field",+ Type: "RFC 3339",+ Example: "2006-01-02T15:04:05.999999999Z07:00",+ ReadOnly: true,+ },"btime": {Help: "Time of file birth (creation) read from Last-Modified header",Type: "RFC 3339",@@ -759,6 +765,7 @@ func uploadFile(ctx context.Context, f *Fs, in io.Reader, srcRemote string, opti// Metadata returns the metadata for the objectfunc (o *Object) Metadata(ctx context.Context) (metadata fs.Metadata, err error) {+ metadata.Set("mtime", o.file.UpdatedAt.Format(time.RFC3339Nano))metadata.Set("btime", o.file.CreatedAt.Format(time.RFC3339))metadata.Set("size", strconv.FormatUint(o.file.Size, 10))metadata.Set("file-type", o.file.FileType)