From a4ee995bf1a973d719ae4e878c359a68860602b8 Mon Sep 17 00:00:00 2001 From: "conrad%ingress.com" Date: Mon, 17 Jul 2000 15:01:10 +0000 Subject: [PATCH] Added Get/SetPersistentDescriptor. Use this instead of GetPath/InitWithPath. r = dougt git-svn-id: svn://10.0.0.236/trunk@74317 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/io/nsLocalFileOS2.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/mozilla/xpcom/io/nsLocalFileOS2.cpp b/mozilla/xpcom/io/nsLocalFileOS2.cpp index 64b962698af..7ceb3405647 100644 --- a/mozilla/xpcom/io/nsLocalFileOS2.cpp +++ b/mozilla/xpcom/io/nsLocalFileOS2.cpp @@ -2074,6 +2074,20 @@ nsLocalFile::GetDirectoryEntries(nsISimpleEnumerator * *entries) return NS_OK; } +NS_IMETHODIMP +nsLocalFile::GetPersistentDescriptor(char * *aPersistentDescriptor) +{ + NS_ENSURE_ARG_POINTER(aPersistentDescriptor); + return GetPath(aPersistentDescriptor); +} + +NS_IMETHODIMP +nsLocalFile::SetPersistentDescriptor(const char * aPersistentDescriptor) +{ + NS_ENSURE_ARG(aPersistentDescriptor); + return InitWithPath(aPersistentDescriptor); +} + nsresult NS_NewLocalFile(const char* path, PRBool followLinks, nsILocalFile* *result)