mirror of
https://github.com/samsonjs/arq_restore.git
synced 2026-04-27 15:07:44 +00:00
fixed a bug where 'appdata' wasn't supported as a root Google Drive path
This commit is contained in:
parent
8084b69b31
commit
254e815eac
1 changed files with 1 additions and 1 deletions
|
|
@ -90,7 +90,7 @@ CWL_SYNTHESIZE_SINGLETON_FOR_CLASS(GoogleDriveFactory)
|
||||||
[lock lock];
|
[lock lock];
|
||||||
NSMutableDictionary *folderIdsByPath = [folderIdDictionariesByRefreshToken objectForKey:theRefreshToken];
|
NSMutableDictionary *folderIdsByPath = [folderIdDictionariesByRefreshToken objectForKey:theRefreshToken];
|
||||||
if (folderIdsByPath == nil) {
|
if (folderIdsByPath == nil) {
|
||||||
folderIdsByPath = [NSMutableDictionary dictionaryWithObject:@"root" forKey:@"/"];
|
folderIdsByPath = [NSMutableDictionary dictionaryWithObjectsAndKeys:@"root", @"/", @"appdata", @"/appdata", nil];
|
||||||
[folderIdDictionariesByRefreshToken setObject:folderIdsByPath forKey:theRefreshToken];
|
[folderIdDictionariesByRefreshToken setObject:folderIdsByPath forKey:theRefreshToken];
|
||||||
}
|
}
|
||||||
NSString *ret = [[[folderIdsByPath objectForKey:thePath] copy] autorelease];
|
NSString *ret = [[[folderIdsByPath objectForKey:thePath] copy] autorelease];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue