Posted By

xzkcz on 02/02/09


Tagged

xul


Versions (?)

getFileSize


 / Published in: JavaScript
 

URL: https://developer.mozilla.org/en/nsLocalFile

  1. function getFileSize(path) {
  2. var file =
  3. Components.classes["@mozilla.org/file/local;1"].
  4. createInstance(Components.interfaces.nsILocalFile);
  5. file.initWithPath(path);
  6. return file.fileSize;
  7. }

Report this snippet  

You need to login to post a comment.