please help with GetDiskSpace
#1
Lightbulb 
In file "xbmc/utils/SystemInfo.cpp"
there is a method called:
PHP Code:
bool CSysInfo::GetDiskSpace(const CStdString drive,intiTotalintiTotalFreeintiTotalUsedintiPercentFreeintiPercentUsed

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.
Reply

Logout Mark Read Team Forum Stats Members Help
please help with GetDiskSpace0