Indy 9
|
function ProcessPath(const ABasePath: String; const APath: String; const APathDelim: string = '/'): string;
ProcessPath is used when TIdFTPServer.CurrentDir and TIdFTPServer.List are used with path specifiers. ProcessPath is also used when TIdHTTP is used with a URL that contains relative path information.
When APath is an empty string (''), the value in ABasePath is assigned as the return value for ProcessPath. When APath does not begin with the symbol for the root directory ('/'), the value in ABasePath is prepended to the value in APath for resolution.
When APath indicates a path relative to the current directory ('./'), additional directory path resolution is performed. Otherwise, the value in APath is used as the return value for ProcessPath.
The process of directory path resolution involves tracking directory information for any directory path prior to the reference to a relative directory using './' or '../'.