mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-12-22 14:05:23 +01:00
use 'xbmc backup' as root directory
This commit is contained in:
parent
e316e82013
commit
cf40edad79
@ -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
|
||||
|
@ -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 = []
|
||||
|
Loading…
Reference in New Issue
Block a user