"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
drive: implement DirSetModTime
nielashcbcb2951856f
diff --git a/backend/drive/drive.go b/backend/drive/drive.goindex 88e2b7253..bffe63ff5 100644--- a/backend/drive/drive.go+++ b/backend/drive/drive.go@@ -2535,6 +2535,20 @@ func (f *Fs) Mkdir(ctx context.Context, dir string) error {return err}+// DirSetModTime sets the directory modtime for dir+func (f *Fs) DirSetModTime(ctx context.Context, dir string, modTime time.Time) error {+ dirID, err := f.dirCache.FindDir(ctx, dir, false)+ if err != nil {+ return err+ }+ o := baseObject{+ fs: f,+ remote: dir,+ id: dirID,+ }+ return o.SetModTime(ctx, modTime)+}+// delete a file or directory unconditionally by IDfunc (f *Fs) delete(ctx context.Context, id string, useTrash bool) error {return f.pacer.Call(func() (bool, error) {@@ -4242,6 +4256,7 @@ var (_ fs.PublicLinker = (*Fs)(nil)_ fs.ListRer = (*Fs)(nil)_ fs.MergeDirser = (*Fs)(nil)+ _ fs.DirSetModTimer = (*Fs)(nil)_ fs.Abouter = (*Fs)(nil)_ fs.Object = (*Object)(nil)_ fs.MimeTyper = (*Object)(nil)