mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-11-15 04:45:49 +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_base_path = "/"
|
||||||
self.remote_vfs = DropboxFileSystem("/")
|
self.remote_vfs = DropboxFileSystem("/")
|
||||||
elif(utils.getSetting('remote_selection') == '3'):
|
elif(utils.getSetting('remote_selection') == '3'):
|
||||||
self.remote_base_path = '/'
|
self.remote_base_path = '/XBMC Backup/'
|
||||||
self.remote_vfs = GoogleDriveFilesystem('/')
|
self.remote_vfs = GoogleDriveFilesystem('/XBMC Backup/')
|
||||||
|
|
||||||
def remoteConfigured(self):
|
def remoteConfigured(self):
|
||||||
result = True
|
result = True
|
||||||
|
@ -310,6 +310,13 @@ class GoogleDriveFilesystem(Vfs):
|
|||||||
#create the drive object
|
#create the drive object
|
||||||
self.drive = GoogleDrive(gauth)
|
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):
|
def listdir(self,directory):
|
||||||
files = []
|
files = []
|
||||||
dirs = []
|
dirs = []
|
||||||
|
Loading…
Reference in New Issue
Block a user