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

CleanAndExpandDirectory

Removes whitespace and resolves special characters in the specified path.

Declaration

Source position: lazfileutils.pas line 63

function CleanAndExpandDirectory(

  const Filename: string

):string;

Arguments

Filename

  

Path information for the function.

Function result

Path information after removing whitespace and resolving special characters.

Description

CleanAndExpandDirectory is a String function used to remove whitespace and resolve special characters in the specified path. CleanAndExpandDirectory calls CleanAndExpandFilename to get the return value for the function. CleanAndExpandDirectory calls AppendPathDelim to ensure that a trailing path delimiter is included in the return value. The return value is the current directory when the specified path contains an empty string ('').

See also

CleanAndExpandFilename

  

Removes whitespace and resolves special characters in the specified file name.

AppendPathDelim

  

Adds a trailing path delimiter to the specified path (when needed).


Version 4.0 Generated 2025-05-03 Home