mozdev.org

JSLib
Page Updated: August 31, 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

JS FileUtils API

status: stable


Function List

Examples: js> load('chrome/jslib/jslib.js'); ********************* JS_LIB DEBUG IS ON ********************* js> include(jslib_fileutils); *** load: fileUtils.js OK js> var fu = new FileUtils; js> fu.exists('/tmp'); true js> fu.chromeToPath('chrome://jslib/content/jslib.js'); /usr/src/mozilla/dist/bin/chrome/jslib/jslib.js js> fu.urlToPath('file:///usr/src/mozilla/dist/bin/chrome/jslib/'); /usr/src/mozilla/dist/bin/chrome/jslib/ js> fu.append('/tmp', 'foo.dat'); /tmp/foo.dat js> fu.size('/tmp/foo'); 4628 js> fu.ext('/tmp/foo.barzzzz'); barzzzz js> fu.permissions('/tmp/foo.barzzzz'); 644 js> fu.parent('/tmp/foo.barzzzz'); /tmp js> quit();

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