2015-10-25, 12:47
Unfortunately for security reasons, the Files.GetDirectory method will only return details of directories (and files) that are within your sources, so it's not currently possible to use this method to access the contents of the clients userdata folder.
You can see this behaviour with the call "texturecache.py rdirectory special://masterprofile" which tries to recursively list the contents of the master profile directory (ie. .kodi/userdata), but it will fail. Now add "special://masterprofile/" to sources.xml, restart Kodi and try the rdirectory call again, and all files will be successfully retrieved.
You can see this behaviour with the call "texturecache.py rdirectory special://masterprofile" which tries to recursively list the contents of the master profile directory (ie. .kodi/userdata), but it will fail. Now add "special://masterprofile/" to sources.xml, restart Kodi and try the rdirectory call again, and all files will be successfully retrieved.