mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-11-15 04:45:49 +01:00
when using vfs module need to cut off full file path
This commit is contained in:
parent
707bd61863
commit
5163152ce8
@ -53,8 +53,9 @@ class FileManager:
|
|||||||
#this part is an oddity
|
#this part is an oddity
|
||||||
configFiles = vfs.listdir(self.walk_path + "userdata/",extra_metadata=True)
|
configFiles = vfs.listdir(self.walk_path + "userdata/",extra_metadata=True)
|
||||||
for aFile in configFiles:
|
for aFile in configFiles:
|
||||||
|
xbmc.log(aFile['file'][len(self.walk_path):])
|
||||||
if(aFile['file'].endswith(".xml")):
|
if(aFile['file'].endswith(".xml")):
|
||||||
self.addFile("userdata/" + aFile['file'])
|
self.addFile(aFile['file'][len(self.walk_path):])
|
||||||
|
|
||||||
def walkTree(self,directory):
|
def walkTree(self,directory):
|
||||||
for (path, dirs, files) in vfs.walk(directory):
|
for (path, dirs, files) in vfs.walk(directory):
|
||||||
|
Loading…
Reference in New Issue
Block a user