reading remote directories
#12
(2019-07-03, 09:38)smitchell6879 Wrote:
(2019-07-03, 08:21)pkscout Wrote:
(2019-07-02, 22:57)smitchell6879 Wrote: Alright so in my add-on I have the user select a download folder. I the user want to use my network windows share so I selected it. Kodi gives me a link smb:// server/ folder. . now I with my add-on have at link and I want to join that link to a subfolder and mkdir if not exist or if it does I want to listdir. How would I do this with vfs my testing so far has failed. So I was going to result to pysmb as a last ditch hope to use my windows share. 

I use os.path.join in Artist Slideshow and it works fine.
Code:
os.path.join( self.LOCALARTISTPATH, info_dir, self.FANARTFOLDER )
LOCALARTISTPATH is grabbed from the settings as a string, info_dir is another string, and FANARTFOLDER is a third string.  Doing that I've never had to check and see what method is being used to get to LOCALARTISTPATH.  It's been tested with local file system on Mac, Windows, and Raspberry Pi as well as with SMB and NFS connections from within Kodi.

I must have some other problem then because I am already doing this and it will not work.. I will just have to do some more testing .



Thanks for the help

I have it working on the PC now. So hopefully tonight I will get time to get it working on the shield.
Shield TV | Windows 10 | Mariadb | Mii Box
Evolve Ecosystem Repo | TV Melodies | Madnox Holiday Mod
Reply


Messages In This Thread
reading remote directories - by smitchell6879 - 2019-07-01, 15:55
RE: reading remote directories - by Roman_V_M - 2019-07-01, 18:51
RE: reading remote directories - by Roman_V_M - 2019-07-02, 06:53
RE: reading remote directories - by Roman_V_M - 2019-07-02, 20:38
RE: reading remote directories - by pkscout - 2019-07-02, 22:23
RE: reading remote directories - by Klojum - 2019-07-02, 22:29
RE: reading remote directories - by pkscout - 2019-07-03, 08:21
RE: reading remote directories - by smitchell6879 - 2019-07-03, 14:25
Logout Mark Read Team Forum Stats Members Help
reading remote directories0