rem: file.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0755); 
add: file.create(nsIFile.DIRECTORY_TYPE, 0755); 
context: function newDir() {  var file;  var promptService =    Components.classes[nsIPromptService_CONTRACTID].getService(Components.interfaces.nsIPromptService);  var dialogTitle =    gFilePickerBundle.getString("promptNewDirTitle");  var dialogMsg =    gFilePickerBundle.getString("promptNewDirMessage");  var ret = promptService.prompt(window, dialogTitle, dialogMsg, gNewDirName, null, {value:0});  if (ret) {    file = processPath(gNewDirName.value);    if (!file) {      showErrorDialog("errorCreateNewDirTitle",                      "errorCreateNewDirMessage",                      file);      return false;    }        if (file.exists()) {      showErrorDialog("errorNewDirDoesExistTitle",                      "errorNewDirDoesExistMessage",                      file);      return false;    }    var parent = file.parent;    if (!(parent.exists() && parent.isDirectory() && parent.isWritable())) {      var oldParent = parent;      while (!parent.exists()) {        oldParent = parent;        parent = parent.parent;      }      if (parent.isFile()) {        showErrorDialog("errorCreateNewDirTitle",                        "errorCreateNewDirIsFileMessage",                        parent);        return false;      }      if (!parent.isWritable()) {        showErrorDialog("errorCreateNewDirTitle",                        "errorCreateNewDirPermissionMessage",                        parent);        return false;      }    }    try {      file.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0755);     } catch (e) {      showErrorDialog("errorCreateNewDirTitle",                      "errorCreateNewDirMessage",                      file);      return false;    }    file.normalize(); // ... in case ".." was used in the path    gotoDirectory(file);    // we remember and reshow a dirname if something goes wrong    // so that errors can be corrected more easily. If all went well,    // reset the default value to blank    gNewDirName = { value: "" };   }  return true;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/72d11531a98c05182f7e0b93e89c5871fb7db820/filepicker.js/clean/toolkit/components/filepicker/content/filepicker.js