use 'xbmc backup' as root directory

This commit is contained in:
Rob Weber 2014-10-09 14:42:59 -05:00
parent e316e82013
commit cf40edad79
2 changed files with 9 additions and 2 deletions

View File

@ -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

View File

@ -310,6 +310,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 = []
dirs = []