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; pPathDelimiter: Char): String; overload; static;
Parameters 
Description 
const pPath: String 
A string that contains the path to remove releative parts of. 
pPathDelimiter: Char 
Pass path delimiter here 

String: The passed path without any relative parts.

Works also for UNIX paths.

roth