2013-11-16, 12:34
In file "xbmc/utils/SystemInfo.cpp"
there is a method called:
no matter what I pass to it as first parameter for ex: "/" or "/dev/sda5" or "smb://abc/xyz"
it always returns false and rest of the variables are filled with some values but those do not seem to be accurate, I believe those variables contain disk space value in MB.
what could be the reason?
Can we use this function to find out total and free space of a network share, is there any other method to do this in any file of xbmc ?
Thanks for help in advance.
there is a method called:
PHP Code:
bool CSysInfo::GetDiskSpace(const CStdString drive,int& iTotal, int& iTotalFree, int& iTotalUsed, int& iPercentFree, int& iPercentUsed)
no matter what I pass to it as first parameter for ex: "/" or "/dev/sda5" or "smb://abc/xyz"
it always returns false and rest of the variables are filled with some values but those do not seem to be accurate, I believe those variables contain disk space value in MB.
what could be the reason?
Can we use this function to find out total and free space of a network share, is there any other method to do this in any file of xbmc ?
Thanks for help in advance.