Class VirtualFilePathManager
- Namespace
- Dynamicweb.Core
- Assembly
- Dynamicweb.Core.dll
Manager for virtual file paths within DynamicWeb.
public abstract class VirtualFilePathManager
- Inheritance
-
VirtualFilePathManager
- Inherited Members
- Extension Methods
Methods
AddOrUpdateVirtualDirectoryMapping(string, DirectoryInfo)
Adds or updates a mapping of a virtual directory to a physical path.
public abstract void AddOrUpdateVirtualDirectoryMapping(string directoryName, DirectoryInfo info)
Parameters
directoryNamestringName of the directory.
infoDirectoryInfoThe absolute path to the mapped directory.
AddVirtualDirectoryMapping(string, DirectoryInfo)
Adds a mapping of a virtual directory to a physical path.
public abstract void AddVirtualDirectoryMapping(string directoryName, DirectoryInfo info)
Parameters
directoryNamestringName of the directory.
infoDirectoryInfoThe absolute path to the mapped directory.
MapPath(string)
The MapPath method maps the specified relative or virtual path to the corresponding physical directory on the server.
public abstract string MapPath(string relativePath)
Parameters
relativePathstringThe relative path.
Returns
- string
absolutePath
Remarks
Does not support '..' in paths
SanitizePath(string)
Sanitizes the path, ensuring that it is in the format expected for a file-system path.
public abstract string SanitizePath(string path)
Parameters
pathstringThe path.
Returns
- string
sanitizedPath