rem: function getItemsFile() {  var appDirectoryService = Components .classes["@mozilla.org/file/directory_service;1"] .getService(Components.interfaces.nsIProperties); if ( !appDirectoryService ) throw("couldn't get the directory service");   var profileDir = appDirectoryService.get("ProfD", Components.interfaces.nsIFile); if ( !profileDir ) throw ("couldn't get the user's profile directory");   var file = profileDir.clone(); file.append("feeditems.rdf"); 
add: function getItemsFile(server) { server.QueryInterface(Components.interfaces.nsIRssIncomingServer); var file = server.subscriptionsDataSourcePath; 
context: function getItemsFile() {  // Get the app directory service so we can look up the user's profile dir.  var appDirectoryService =    Components      .classes["@mozilla.org/file/directory_service;1"]        .getService(Components.interfaces.nsIProperties);  if ( !appDirectoryService )    throw("couldn't get the directory service");  // Get the user's profile directory.  var profileDir =    appDirectoryService.get("ProfD", Components.interfaces.nsIFile);  if ( !profileDir )    throw ("couldn't get the user's profile directory");  // Get the user's subscriptions file.  var file = profileDir.clone();  file.append("feeditems.rdf");  // If the file doesn't exist, create it.  if (!file.exists()) {    var newfile = new LocalFile(file, MODE_WRONLY | MODE_CREATE);    newfile.write('\<?xml version="1.0"?>\n\<RDF:RDF xmlns:dc="http://purl.org/dc/elements/1.1/"\n\         xmlns:fz="' + FZ_NS + '"\n\         xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#">\n\</RDF:RDF>\n\');    newfile.close();  }  return file;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/002bf2393818a5080a3d8b514c17631f7220102f/utils.js/clean/mail/extensions/newsblog/content/utils.js