mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-11-15 04:45:49 +01:00
directory has to end in slash to use exists()
This commit is contained in:
parent
622939901e
commit
8c61616d3c
@ -89,9 +89,14 @@ class AdvancedBackupEditor:
|
|||||||
if(enterHome):
|
if(enterHome):
|
||||||
rootFolder = self.dialog.input(utils.getString(30116),defaultt=rootFolder)
|
rootFolder = self.dialog.input(utils.getString(30116),defaultt=rootFolder)
|
||||||
|
|
||||||
|
#direcotry has to end in slash
|
||||||
|
if(rootFolder[:-1] != '/'):
|
||||||
|
rootFolder = rootFolder + '/'
|
||||||
|
|
||||||
#check that this path even exists
|
#check that this path even exists
|
||||||
if(not xbmcvfs.exists(xbmc.translatePath(rootFolder))):
|
if(not xbmcvfs.exists(xbmc.translatePath(rootFolder))):
|
||||||
self.dialog.ok(utils.getString(30117),utils.getString(30118),rootFolder)
|
self.dialog.ok(utils.getString(30117),utils.getString(30118),rootFolder)
|
||||||
|
return None
|
||||||
else:
|
else:
|
||||||
#select path to start set
|
#select path to start set
|
||||||
rootFolder = self.dialog.browse(type=0,heading=utils.getString(30119),shares='files',defaultt=rootFolder)
|
rootFolder = self.dialog.browse(type=0,heading=utils.getString(30119),shares='files',defaultt=rootFolder)
|
||||||
|
Loading…
Reference in New Issue
Block a user