rem: if (file.isFile()) { 
add: if (file.isFile() || (filePickerMode == nsIFilePicker.modeGetFolder)) { /* Note, if we're in GetFolder mode, everything in the display list will be a directory, so we don't need an extra check */ 
context: function onSelect(e) {  if (e.target.selectedItems.length != 1)    return;  var file = URLpathToFile(e.target.selectedItems[0].firstChild.getAttribute("path"));  if (file.isFile()) {    textInput.value = file.leafName;    lastClicked = file.leafName;  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/e46f935db2012423b4ceb8c1d13438b519c98003/filepicker.js/clean/xpfe/components/filepicker/res/content/filepicker.js