Reliably obtain free disk space on shares
#16
(2014-05-01, 20:31)takoi Wrote: I'll try to explain it better: When users browse samba shares (etc.) though xbmc, there is no mount path or system path to get, because it's not mounted anywhere. Xbmc implements a client which acts as a virtual file system. That's what I meant by xbmc's internal vfs, and that's how the methods in the xbmcvfs python module supports smb:// type urls. Most of these functions are just pass-through to other functions already implemented in c++. So what you should do, if you want to go this route, is look at the source code if there is anything like statvfs already implemented and add a python interface to it.

Alternatively implement it from scratch in pysmb in the add-on or with c++ directly in xbmc.

@amet That's not what he's asking about. Also, you can get all sources. GetSources in json-rpc api
Thank you for explaining, I understand it a little better now. I will comb through the XBMC source code to see if I can find anything.
Reply

Logout Mark Read Team Forum Stats Members Help
Reliably obtain free disk space on shares1