2011-03-29, 05:25
I'm not sure if I have come across a bug or not... First I'll see if my knowledge is correct...
translatePath() is needed to translated XBMC paths into true file paths(XBMC Paths include special:// and smb://) If I pass a path that is proper, XBMC should return the same path.
If this is correct, then I think there is a problem...
If a Mapped drive is passed to translatePath(), it returns a modified file path(which seem to use the special://temp/ to make a path)
For example:
this prints t_path which becomes.
Looking at the xbmc.log file special://temp/ is
I need to use translatePath() since users can put a smb:// path in to the option I am using...
translatePath() is needed to translated XBMC paths into true file paths(XBMC Paths include special:// and smb://) If I pass a path that is proper, XBMC should return the same path.
If this is correct, then I think there is a problem...
If a Mapped drive is passed to translatePath(), it returns a modified file path(which seem to use the special://temp/ to make a path)
For example:
Code:
path = "Z:\\Video\\Misc\\TheaterExperience\\AudioIntros\\
t_path = xbmc.translatePath( path )
print t_path
this prints t_path which becomes.
Code:
C:\\Users\\HTPC\\AppData\\Roaming\\XBMC\\cache\\Video\\Misc\\TheaterExperience\\AudioIntros\\
Looking at the xbmc.log file special://temp/ is
Code:
21:12:55 T:2308 M:2706006016 NOTICE: special://temp/ is mapped to: C:\Users\HTPC\AppData\Roaming\XBMC\cache
I need to use translatePath() since users can put a smb:// path in to the option I am using...