1
0
mirror of https://github.com/gilbertchen/duplicacy synced 2025-12-22 11:13:35 +00:00

Merge branch 'master' into master

This commit is contained in:
gilbertchen
2018-03-19 11:53:11 -04:00
committed by GitHub
14 changed files with 444 additions and 84 deletions

View File

@@ -142,6 +142,12 @@ func loadStorage(localStoragePath string, threads int) (Storage, error) {
storage, err := CreateHubicStorage(config["token_file"], config["storage_path"], threads)
storage.SetDefaultNestingLevels([]int{2, 3}, 2)
return storage, err
} else if testStorageName == "memset" {
storage, err := CreateSwiftStorage(config["storage_url"], config["key"], threads)
storage.SetDefaultNestingLevels([]int{2, 3}, 2)
return storage, err
} else {
return nil, fmt.Errorf("Invalid storage named: %s", testStorageName)
}
return nil, fmt.Errorf("Invalid storage named: %s", testStorageName)