CServer::mapPath

The CServer::mapPath function map the specified relative or virtual path to the corresponding physical directory on the server.

chchar * mapPath(
chchar * in // containing the relative or virtual path to be mapped.
);



Return Type

chchar *
Upon successful completion, a string which receives the physical path is returned. Otherwise, NULL is returned.


Parameters

in
A string containing the relative or virtual path to be mapped.


Remarks

This function maps the specified relative or virtual path to the corresponding physical directory on the server. This function does not check whether the path it returns is valid or exists on the server. Because it maps a path regardless of whether the specified directories currently exist, the user can use it to map a path to a physical directory structure, and then pass that path to a component that creates the specified directory or file on the server.


See Also

CServer

Example