xmbcvfs.listdir returns empty array (kinda)
#1
hi, I want to list the content of a folder. I am using 
xml:
dirs, files = xbmcvfs.listdir(path)
 according to this page:  https://romanvm.github.io/Kodistubs/_aut...fs.listdir

Here is my complete code:
xml:
import xbmc
import xbmcvfs

path = xbmc.getInfoLabel('ListItem.FileNameAndPath')
dirs, files = xbmcvfs.listdir(path)

print(files)

the content of "files" is an empty array:

Code:
['', '', '', '', '', '', '', '']

Interesting thing though, the quotes in the array match the number of items of the folder. So I must be somewhat close to the desired result.

I bet it's something elementary but I just can't figure out what.

Appreciated any help!
Reply
#2
Upon further investigation I realized the code works just fine for local files and folders.

Otherwise the problem persists.

E.g.: plugin folders. The list is always empty.

Any ideas?
Reply

Logout Mark Read Team Forum Stats Members Help
xmbcvfs.listdir returns empty array (kinda)0