rem: getDirectoryContents(directoryTree, sfile.directoryEntries);  
add: gotoDirectory(sfile); 
context: function onLoad() {  directoryTree = document.getElementById("directoryTree");  textInput = document.getElementById("textInput");  if (window.arguments) {    var o = window.arguments[0];    retvals = o.retvals; /* set this to a global var so we can set return values */    const title = o.title;    filePickerMode = o.mode;    if (o.displayDirectory)      const directory = o.displayDirectory.path;    const initialText = o.defaultString;    const filterTitles = o.filters.titles;    const filterTypes = o.filters.types;    const numFilters = filterTitles.length;    window.title = title;    if (initialText) {      textInput.value = initialText;    }    /* build filter popup */    var filterPopup = document.createElement("menupopup");    currentFilter = filterTypes[0];    for (var i = 0; i < numFilters; i++) {      var menuItem = document.createElement("menuitem");      menuItem.setAttribute("value", filterTitles[i] + " (" + filterTypes[i] + ")");      menuItem.setAttribute("filters", filterTypes[i]);      filterPopup.appendChild(menuItem);    }    var filterMenuList = document.getElementById("filterMenuList");    filterMenuList.appendChild(filterPopup);  }  // setup the dialogOverlay.xul button handlers  doSetOKCancel(onOK, onCancel);  if (directory)    sfile.initWithPath(directory);  if (!directory || !(sfile.exists() && sfile.isDirectory())) {    // Start in the user's home directory    var dirServiceProvider = Components.classes[nsIDirectoryServiceProvider_PROGID].getService().QueryInterface(nsIDirectoryServiceProvider);    var persistent = new Object();    var homeDir = dirServiceProvider.getFile("Home", persistent);    sfile.initWithPath(homeDir.path);  }  retvals.buttonStatus = nsIFilePicker.returnCancel;  addToHistory(sfile.path);  getDirectoryContents(directoryTree, sfile.directoryEntries);  textInput.focus();}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/64567f464649661646b48369f72d0ae3f6d60cfc/filepicker.js/clean/xpfe/components/filepicker/res/content/filepicker.js