Is a there any way for hiding XFILE errors in log?
#1
Hi All, i have a question about hiding XFILE::CDirectory::GetDirectory error in log.
For example: when i write xbmcvfs.listdir(folder_path) i get XFILE error if folder_path not exist. For some reason i can't use xbmcvfs.exists function and i need to use xbmcvfs.listdir for existing and not existing folders. Is a there any way for hiding XFILE errors?
Reply
#2
nope, you can't hide specific log messages.

what's the problem you're having with xbmcvfs.exists() ?
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
For example:

If i don't know what argument is passed to xbmcvfs.exists (file/folder/URL/plugin etc.this situation occurs during scan listitems links (listitem.filenameadnpath) or favorites links scan) i get not correct result.

xbmcvfs.exists ('http://forum.kodi.tv/forumdisplay.php?fid=151') - 1 (true)
xbmcvfs.exists ('http://forum.kodi.tv/forumdisplay.php?fid=151/') - 1 (true)
xbmcvfs.exists ('google.com') - 1 (true)
...
Reply
#4
You can't use that on url as it for local storage iirc
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#5
(2016-10-25, 16:53)Martijn Wrote: You can't use that on url as it for local storage iirc

I understand, but if i have 5 listitems:
1. C:\\myfile.txt
2. C:\\myfolder\\
3. http://www.someurl.com/strmvideo.mp4
4. plugin://plugin.video.test/episodes
5. plugin://plugin.video.test/?play=episode1.mp4

And i need get all files from listitems paths i must check: is this path is path to folder? Is this path is url? Is this path if path to file? etc. OR use xbmcvfs.listdir and get ([],[]) if path is not folder. In my case this is enough. One problem XFILE errors in log. )))
Reply

Logout Mark Read Team Forum Stats Members Help
Is a there any way for hiding XFILE errors in log?0