[Project_owners] How to enumerate disks in Mozilla?

Neil neil at parkwaycc.co.uk
Sat Feb 14 12:52:41 EST 2004

Martin Hassman wrote:

> does know anyone, if there is possible under Windows to enumerate disk 
> drives?  I mean to know if there is C:, D:, E: etc. I have looked in 
> the XPCOM, but I have not find any suitable interface.

This might help you:

var FSDS = RDF.GetDataSource("rdf:files");
var root = RDF.GetResource("NC:FilesRoot");
var child = RDF.GetResource("http://home.netscape.com/NC-rdf#child");
var drives = FSDS.GetTargets(root, child, true);

More information about the Project_owners mailing list