1
0
mirror of https://github.com/gilbertchen/duplicacy synced 2025-12-21 18:53:37 +00:00

Adds support for GDrive Shared Drives

A shared drive can be accessed via
gcd://sharedDriveId@path/to/storage

sharedDriveId is optional and if omitted duplicacy stores to the user's drive.
This remains backwards compatible with existing drives. E.g.
gcd://path/to/storage

Note: Shared Drives were previously named Team Drives.
This commit is contained in:
Richard Sanger
2019-11-06 00:37:50 +13:00
parent abf9a94fc9
commit 426110e961
3 changed files with 30 additions and 11 deletions

View File

@@ -131,7 +131,7 @@ func loadStorage(localStoragePath string, threads int) (Storage, error) {
storage.SetDefaultNestingLevels([]int{2, 3}, 2)
return storage, err
} else if testStorageName == "gcd" {
storage, err := CreateGCDStorage(config["token_file"], config["storage_path"], threads)
storage, err := CreateGCDStorage(config["token_file"], "", config["storage_path"], threads)
storage.SetDefaultNestingLevels([]int{2, 3}, 2)
return storage, err
} else if testStorageName == "one" {