PRBool exists; rv = profileDir->Exists(&exists); if (NS_FAILED(rv)) return rv;  if (exists) rv = profileDir->Delete(PR_TRUE);  return rv;
if (profileDir.Exists()) { profileDir.Delete(PR_TRUE); }
nsresult nsProfile::DeleteUserDirectories(nsIFile *profileDir){    NS_ENSURE_ARG(profileDir);    nsresult rv;#if defined(DEBUG_profile_verbose)    printf("ProfileManager : DeleteUserDirectories\n");#endif    PRBool exists;    rv = profileDir->Exists(&exists);    if (NS_FAILED(rv)) return rv;        if (exists)        rv = profileDir->Delete(PR_TRUE);        return rv;}