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
This commit is contained in:
conrad%ingress.com
2000-07-17 15:01:10 +00:00
parent 377de8996f
commit a4ee995bf1

View File

@@ -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)