rv = NS_NewLocalFile( path, getter_AddRefs(cacheFolder));
rv = NS_NewLocalFile( path, PR_FALSE, getter_AddRefs(cacheFolder));
static int PR_CALLBACK folderChanged(const char *pref, void *closure){	nsresult rv;	NS_WITH_SERVICE(nsIPref, prefs, NS_PREF_PROGID, &rv);	if ( NS_FAILED (rv ) )		return rv;			nsCOMPtr<nsIFileSpec> folder;	rv = prefs->GetFilePref(CACHE_DIR_PREF, getter_AddRefs( folder )  );		if ( NS_FAILED( rv ) )		return rv;		// This is really wrong and should be fixed when the pref code is update	// If someone has a system where path names are not unique they are going to	// be in a world of hurt.		nsCOMPtr<nsILocalFile> cacheFolder;	char* path = NULL;	rv = folder->GetNativePath(& path );	if ( NS_FAILED ( rv ) )		return rv;			rv = NS_NewLocalFile( path, getter_AddRefs(cacheFolder));	nsMemory::Free( path );		return ( (nsNetDiskCache*)closure )->SetDiskCacheFolder( cacheFolder );	}