rem: var file = URLpathToFile(path); if (file) { /* Put the leafName of the selected item in the input field if: - GetFolder mode   : a directory was selected (only option) - Open or Save mode: a file was selected                    */ if ((filePickerMode == nsIFilePicker.modeGetFolder) || file.isFile()) { textInput.value = file.unicodeLeafName; doEnabling(); } 
add: if ((filePickerMode == nsIFilePicker.modeGetFolder) || file.isFile()) { textInput.value = path; doEnabling(); 
context: function onSelect(e) {  if (e.target.selectedItems.length != 1)    return;  var path = e.target.selectedItems[0].firstChild.getAttribute("path");  if (path) {    var file = URLpathToFile(path);    if (file) {      /* Put the leafName of the selected item in the input field if:         - GetFolder mode   : a directory was selected (only option)         - Open or Save mode: a file was selected                    */      if ((filePickerMode == nsIFilePicker.modeGetFolder) || file.isFile()) {        textInput.value = file.unicodeLeafName;        doEnabling();      }    }  }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/6305349245d3c1cead6eb1d7510d34c52e5766e2/filepicker.js/clean/xpfe/components/filepicker/res/content/filepicker.js