diff --git a/resources/lib/backup.py b/resources/lib/backup.py index efce29c..1c1e2b1 100644 --- a/resources/lib/backup.py +++ b/resources/lib/backup.py @@ -55,8 +55,8 @@ class XbmcBackup: self.remote_base_path = "/" self.remote_vfs = DropboxFileSystem("/") elif(utils.getSetting('remote_selection') == '3'): - self.remote_base_path = '/' - self.remote_vfs = GoogleDriveFilesystem('/') + self.remote_base_path = '/XBMC Backup/' + self.remote_vfs = GoogleDriveFilesystem('/XBMC Backup/') def remoteConfigured(self): result = True diff --git a/resources/lib/vfs.py b/resources/lib/vfs.py index 670a1fb..016154a 100644 --- a/resources/lib/vfs.py +++ b/resources/lib/vfs.py @@ -309,6 +309,13 @@ class GoogleDriveFilesystem(Vfs): #create the drive object self.drive = GoogleDrive(gauth) + + #make sure we have the folder we need + xbmc_folder = self._getGoogleFile(self.root_path) + + if(xbmc_folder == None): + self.mkdir(self.root_path) + def listdir(self,directory): files = []