You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 19, 2023. It is now read-only.
I ran into this issue during #426 and pull request #428
WHAT
After the ClientID / ClientSecret is changed, gdrive sync upload results in the following error Root directoy is not empty, the initial sync requires an empty directory
WHY DOES THIS HAPPEN
gdrive uses app-specific appProperties to store metadata in sync folders, which is used during the syncing process
Changing API credentials means that Google APIs see gdrive as a different "app", so appProperties are no longer present
IMPLEMENTATION SPECIFICS
Usage of sync for reference - gdrive sync upload /path/to/localdir **FOLDER_ID**
**FOLDER_ID**, the sync root folder, has the following appProperties set:
SUGGESTIONS FOR FUTURE properties could be used instead of appProperties with namespaced keys (ie starting with gdrive-*) so that when the client credentials change, the sync properties are still visible
I ran into this issue during #426 and pull request #428
WHAT
After the ClientID / ClientSecret is changed,
gdrive sync uploadresults in the following errorRoot directoy is not empty, the initial sync requires an empty directoryWHY DOES THIS HAPPEN
appPropertiesto store metadata in sync folders, which is used during the syncing processappPropertiesare no longer presentIMPLEMENTATION SPECIFICS
Usage of sync for reference -
gdrive sync upload /path/to/localdir **FOLDER_ID****FOLDER_ID**, the sync root folder, has the following appProperties set:gdrive/drive/sync_upload.go
Line 126 in c3cbcce
gdrive/drive/sync_upload.go
Line 260 in c3cbcce
and
gdrive/drive/sync_upload.go
Line 299 in c3cbcce
"appProperties has {key='syncRootId' and value='%s'}"to get a complete listing of the synced remote filesgdrive/drive/sync.go
Line 155 in c3cbcce
SUGGESTIONS FOR FUTURE
propertiescould be used instead ofappPropertieswith namespaced keys (ie starting withgdrive-*) so that when the client credentials change, the sync properties are still visible