2023-07-15, 21:59
hi, I want to list the content of a folder. I am using
Here is my complete code:
the content of "files" is an empty array:
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!
according to this page: https://romanvm.github.io/Kodistubs/_aut...fs.listdirxml:dirs, files = xbmcvfs.listdir(path)
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!