[Overview][Constants][Types][Procedures and functions][Variables][Index] Reference for unit 'LazFileUtils' (#lazutils)

ChompPathDelim

Removes a trailing path delimiter from the specified value.

Declaration

Source position: lazfileutils.pas line 95

function ChompPathDelim(

  const Path: string

):string;

Arguments

Path

  

Path information for the function.

Function result

Path information after removing the trailing path delimiter.

Description

ChompPathDelim is a String function used to remove a trailing path delimiter from the specified value in Path. For environments where UNC paths are allowed, ChompPathDelim ensures that the UNC path delimiters are retained. Windows Device identifiers, such as "D:" are also retained in Path.


Version 3.2 Generated 2024-02-25 Home