[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'FileUtil' (#lcl)

TrimFilename

TrimFilename - trim double path delimiters, heading and trailing spaces and special dirs . and ..

Declaration

Source position: fileutil.pas line 88

function TrimFilename(

  const AFilename: String

):String;

Arguments

AFilename

  

The name of the file for trimming

Function result

Returns the original file name if no trimming was needed, otherwise returns the trimmed file name