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

jottacloud: fix token refresh failed: is not a regular file error

Nick Craig-Woodcef51d58ac29
diff --git a/backend/jottacloud/jottacloud.go b/backend/jottacloud/jottacloud.go
index 1c6ced368..dc4fc2b5f 100644
--- a/backend/jottacloud/jottacloud.go
+++ b/backend/jottacloud/jottacloud.go
@@ -727,6 +727,9 @@ func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (fs.Fs, e
// Renew the token in the background
f.tokenRenewer = oauthutil.NewRenew(f.String(), ts, func() error {
_, err := f.readMetaDataForPath(ctx, "")
+ if err == fs.ErrorNotAFile {
+ err = nil
+ }
return err
})