FixPath¶
Normalizes and fixes file path format
Declaration¶
Source position: fpmkunit.pp line 1718
function FixPath(const APath: string) : string;
function FixPath(const APath: string; AIsDir: Boolean) : string;
Description¶
FixPath normalizes file paths by converting directory separators to the platform-appropriate format and ensuring consistent path representation. This function handles cross-platform path compatibility.
The normalization includes converting forward/backward slashes, removing redundant separators, and ensuring proper directory path formatting for the target operating system.