From 254e815eac4964f02441bbfdac1e6387239802ad Mon Sep 17 00:00:00 2001 From: Stefan Reitshamer Date: Tue, 12 Jan 2016 19:18:59 -0500 Subject: [PATCH] fixed a bug where 'appdata' wasn't supported as a root Google Drive path --- cocoastack/googledrive/GoogleDriveFactory.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocoastack/googledrive/GoogleDriveFactory.m b/cocoastack/googledrive/GoogleDriveFactory.m index 5160d6e..6f79ec0 100644 --- a/cocoastack/googledrive/GoogleDriveFactory.m +++ b/cocoastack/googledrive/GoogleDriveFactory.m @@ -90,7 +90,7 @@ CWL_SYNTHESIZE_SINGLETON_FOR_CLASS(GoogleDriveFactory) [lock lock]; NSMutableDictionary *folderIdsByPath = [folderIdDictionariesByRefreshToken objectForKey:theRefreshToken]; if (folderIdsByPath == nil) { - folderIdsByPath = [NSMutableDictionary dictionaryWithObject:@"root" forKey:@"/"]; + folderIdsByPath = [NSMutableDictionary dictionaryWithObjectsAndKeys:@"root", @"/", @"appdata", @"/appdata", nil]; [folderIdDictionariesByRefreshToken setObject:folderIdsByPath forKey:theRefreshToken]; } NSString *ret = [[[folderIdsByPath objectForKey:thePath] copy] autorelease];