rv = file->GetLeafName(name);
rv = file->GetNativeLeafName(name);
    nsresult Init(const char* origFile) {        nsresult rv;        nsCOMPtr<nsILocalFile> file;        rv = NS_NewNativeLocalFile(nsDependentCString(origFile), PR_FALSE, getter_AddRefs(file));        if (NS_FAILED(rv)) return rv;        nsCAutoString name;        rv = file->GetLeafName(name);        if (NS_FAILED(rv)) return rv;        name += NS_LITERAL_CSTRING(".bak");        rv = file->SetLeafName(name);        if (NS_FAILED(rv)) return rv;        rv = NS_NewLocalFileOutputStream(getter_AddRefs(mOut),                                         file,                                          PR_CREATE_FILE | PR_WRONLY | PR_TRUNCATE,                                         0664);        return rv;    }