rem: f.remove(true); 
add: f.remove(false); 
context: function onDownloadCancel(aEvent){  gDownloadManager.cancelDownload(aEvent.target.id);  setRDFProperty(aEvent.target.id, "DownloadAnimated", "false");  // XXXben -   // If we got here because we resumed the download, we weren't using a temp file  // because we used saveURL instead. (this is because the proper download mechanism  // employed by the helper app service isn't fully accessible yet... should be fixed...  // talk to bz...)  // the upshot is we have to delete the file if it exists.   var f = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile);  f.initWithPath(aEvent.target.id);  if (f.exists())     f.remove(true);  gDownloadViewController.onCommandUpdate();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/897354d23d225b9f42caf0661e418525d552fb82/downloads.js/buggy/toolkit/mozapps/downloads/content/downloads.js