Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

onedrive: fix time precision for OneDrive personal

Nick Craig-Woodc053429b9c0b
diff --git a/backend/onedrive/onedrive.go b/backend/onedrive/onedrive.go
index 7db269c2f..3ceac3f55 100644
--- a/backend/onedrive/onedrive.go
+++ b/backend/onedrive/onedrive.go
@@ -1545,9 +1545,12 @@ func (f *Fs) Rmdir(ctx context.Context, dir string) error {
// Precision return the precision of this Fs
func (f *Fs) Precision() time.Duration {
- if f.driveType == driveTypePersonal {
- return time.Millisecond
- }
+ // While this is true for some OneDrive personal accounts, it
+ // isn't true for all of them. See #8101 for details
+ //
+ // if f.driveType == driveTypePersonal {
+ // return time.Millisecond
+ // }
return time.Second
}