pete collins wrote:
>> All we need to do this is to have a file descriptor which is not an
>> absolute path, but a relative path. The point to which it's relative
>> would be any location defined by nsIDirectoryService. What we could do
>> is to add methods to nsILocalFile:
>
>
> Do you mean relative to
> "DefProfRt" ?
Actually, any key defined (for all platforms) in
http://lxr.mozilla.org/seamonkey/source/xpcom/io/nsDirectoryServiceDefs.h
or
http://lxr.mozilla.org/seamonkey/source/modules/appfilelocprovider/public/nsAppDirectoryServiceDefs.h
>
> so if i had another pref dir say
>
> /D/foo/myPrefs
>
> This dir would be relative the the default moz home ~/.mozilla/
>
You could have %ProfD%/myPrefs and that would be expanded to whatever
nsIDirectoryService returns for "ProfD" on that platform + myPrefs
> Where DefProfRt is always your starting point and other dirs can be
> added relative to this path?
>
> Thanks
>
> --pete