| [Overview][Constants][Types][Procedures and functions][Variables][Index] |
Removes duplicate path delimiters and resolves relative path symbols.
Source position: lazfileutils.pas line 61
function ResolveDots( |
const AFilename: string |
):string; |
AFilename |
|
File name examined in the routine. |
File name with duplicate delimiters and relative paths resolved.
This function shortens duplicate path delimiters to single path delimiters. It resolves 'A/../B' to 'B', which might be wrong under Unix if A is a symlink. The function does not check the local file system. The single dot './A' is resolved to 'A', but a single '.' is retained.