Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

GetMappedPath
Last Post 05/23/2008 9:49 AM by Peter Donker. 1 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
A B
New Member
New Member
Posts:20


--
05/22/2008 10:35 PM

I've been using the Bring2mind.DNN.Modules.DMX.Common.Paths.GetMappedPath call to get the files system paths of various folders that DMX uses and I thought it was working well.  However I recently moved my DMX root folder from the default locations to a UNC path and GetMappedPath is still returning the default locations.

I've switched to using Settings.PortalSettings.FileDirectory instead of GetMappedPath(PathType.DMXRoot) to get the DMX root folder.

I'm not sure if this is the desired behavior of GetMappedPath or not, but I thought I would document my work around for anyone else that's not using the default root folder.

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
05/23/2008 9:49 AM
Hi Allan,

In fact DMXRoot should not be used. I've just run through the code and it is an appendix. Just hanging there without any references. It looks like it was first programmed in, but then later the above became clear, it was never used. The other ones (Upload, Lucene, Log, NotificationTemplates, TemporaryFiles) are valid though and used extensively.

Peter
You are not authorized to post a reply.