ShellBrowser Delphi Components Documentation
ContentsIndexHome
PreviousUpNext
Jam.Shell.PathUtils.TPathUtils.RemoveRelativeParts

Removes relative parts (".." and ".") from the passed path. The ".." sequence indicates to remove a path segment from the current position to the previous path segment. The "." sequence indicates to skip over the next path segment to the following path segment. The root segment of the path cannot be removed. Remark: If there are more ".." sequences than there are path segments, the function returns just the root, "".

Syntax
Pascal
class function RemoveRelativeParts(const pPath: String): String; overload; static;
Parameters 
Description 
const pPath: String 
A string that contains the path to remove releative parts of. 

String: The passed path without any relative parts.

roth

Works only for Windows file system paths.