Bug 323826 - Uninstall of an extension that contains a windows .lnk fails. r=bsmedberg

This commit is contained in:
rob_strong%exchangecode.com 2006-01-20 20:18:42 +00:00
parent 4cd142ba43
commit f34baea140

View File

@ -337,12 +337,13 @@ function getDirNoCreate(key, pathArray) {
function getDirInternal(key, pathArray, shouldCreate) {
var fileLocator = Components.classes["@mozilla.org/file/directory_service;1"]
.getService(Components.interfaces.nsIProperties);
var dir = fileLocator.get(key, Components.interfaces.nsIFile);
var dir = fileLocator.get(key, nsILocalFile);
for (var i = 0; i < pathArray.length; ++i) {
dir.append(pathArray[i]);
if (shouldCreate && !dir.exists())
dir.create(nsILocalFile.DIRECTORY_TYPE, PERMS_DIRECTORY);
}
dir.followLinks = false;
return dir;
}