GetDiskSpaceAvailable in Linux

Vineeth <[email protected]>
Newsgroups gmane.comp.mozilla.devel.nspr
Organization http://groups.google.com
Message-ID <[email protected]>
Hi,

I want to check the available space on the disk......
this is how i am doing it............


PRInt64 iSize = 0;
nsCOMPtr<nsILocalFile> mFile;
NS_NewLocalFile (path, PR_TRUE, getter_AddRefs (mFile));
mFile->GetDiskSpaceAvailable(&iSize);


I get the correct values on Windows......but on the linux the
available disk space i get is 0.
Can anyone help me on this.......


Thanks in Advance
Vineeth Aravindakshan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.