mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-11-14 20:35:48 +01:00
vfs should return encoded dirs/files
This commit is contained in:
parent
e90c8e7803
commit
9246c9b586
@ -164,9 +164,9 @@ class DropboxFileSystem(Vfs):
|
||||
|
||||
for aFile in metadata['contents']:
|
||||
if(aFile['is_dir']):
|
||||
dirs.append(aFile['path'][len(directory):])
|
||||
dirs.append(utils.encode(aFile['path'][len(directory):]))
|
||||
else:
|
||||
files.append(aFile['path'][len(directory):])
|
||||
files.append(utils.encode(aFile['path'][len(directory):]))
|
||||
|
||||
return [dirs,files]
|
||||
else:
|
||||
@ -337,9 +337,9 @@ class GoogleDriveFilesystem(Vfs):
|
||||
|
||||
for aFile in fileList:
|
||||
if(aFile['mimeType'] == self.FOLDER_TYPE):
|
||||
dirs.append(directory + aFile['title'])
|
||||
dirs.append(utils.encode(aFile['title']))
|
||||
else:
|
||||
files.append(directory + aFile['title'])
|
||||
files.append(utils.encode(aFile['title']))
|
||||
|
||||
|
||||
return [dirs,files]
|
||||
|
Loading…
Reference in New Issue
Block a user