rem: var dir = treeView.getSelectedFile(); 
add: var dir = treeView.selectedFiles.queryElementAt(0, nsIFile); 
context: function openOnOK(){  var dir = treeView.getSelectedFile();  if (!dir.isReadable()) {    showErrorDialog("errorOpenFileDoesntExistTitle",                    "errorDirNotReadableMessage",                    dir);    return false;  }  if (dir)    gotoDirectory(dir);  retvals.file = dir;  retvals.buttonStatus = nsIFilePicker.returnCancel;    var filterMenuList = document.getElementById("filterMenuList");  retvals.filterIndex = filterMenuList.selectedIndex;    return false;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/72d11531a98c05182f7e0b93e89c5871fb7db820/filepicker.js/clean/toolkit/components/filepicker/content/filepicker.js