Page Updated: September 13, 2005
Latest Version: 0.1.375
Debug | Install | File I/O | RDF | Network | Sound | Utils | XUL | Zip
Home | Mailing List | Install | Source Code | Downloads | Bugs | docs | clients
STATUS: up to date

JS Directory Utilities Class API

All of these functions return a string path

If you set "useObj = true;", a jsLib File or Dir object will be returned.

Function List

For easy look up they can be found at Examples:
js> var du = new DirUtils; js> du.getChromeDir(); /usr/src/mozilla/dist/bin/chrome js>; Function and Attribute List: getPrefsDir() getChromeDir() getMozHomeDir() getMozUserHomeDir() getAppRegDir() getAppDefaultDir() getAppDefaultPrefDir() getProfileDefaultsLocDir() getProfileDefaultsDir() getAppResDir() getAppPluginsDir() getSearchPluginsDir() getPrefsFile() getUserChromeDir() getLocalStore() getHistoryFile() getPanelsFile() getMimeTypes() getBookmarks() getSearchFile() getUserMailDir() getUserImapDir() getUserNewsDir() getMessengerFolderCache() js> du.getMozHomeDir(); /home/petejc/.mozilla js> du.useObj = true; true js> var obj = du.getMozHomeDir(); js> typeof(obj); object js> obj.exists(); true

The jslib project can be contacted through the mailing list or the member list.
Copyright © 2000-2020. All rights reserved. Terms of Use & Privacy Policy.