The following interfaces are used to get information about local files and directories. Files can be read using input streams and written to using output streams. The main file interfaces is nsIFile and its subinterface nsILocalFile.
the nsIFile interface is used for holding a file reference. You should always use an nsIFile rather than a string file path to ensure that your application will be portable. The nsIDirectoryServiceProvider interface can be used to get pointers to known system directories.nsIDirectoryEnumerator
Reference documentation is generated from Mozilla's source.