mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-11-15 04:45:49 +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']:
|
for aFile in metadata['contents']:
|
||||||
if(aFile['is_dir']):
|
if(aFile['is_dir']):
|
||||||
dirs.append(aFile['path'][len(directory):])
|
dirs.append(utils.encode(aFile['path'][len(directory):]))
|
||||||
else:
|
else:
|
||||||
files.append(aFile['path'][len(directory):])
|
files.append(utils.encode(aFile['path'][len(directory):]))
|
||||||
|
|
||||||
return [dirs,files]
|
return [dirs,files]
|
||||||
else:
|
else:
|
||||||
@ -337,9 +337,9 @@ class GoogleDriveFilesystem(Vfs):
|
|||||||
|
|
||||||
for aFile in fileList:
|
for aFile in fileList:
|
||||||
if(aFile['mimeType'] == self.FOLDER_TYPE):
|
if(aFile['mimeType'] == self.FOLDER_TYPE):
|
||||||
dirs.append(directory + aFile['title'])
|
dirs.append(utils.encode(aFile['title']))
|
||||||
else:
|
else:
|
||||||
files.append(directory + aFile['title'])
|
files.append(utils.encode(aFile['title']))
|
||||||
|
|
||||||
|
|
||||||
return [dirs,files]
|
return [dirs,files]
|
||||||
|
Loading…
Reference in New Issue
Block a user