Normalizes and fixes file path format
Source position: fpmkunit.pp line 1694
function FixPath( |
const APath: string |
):string; |
const APath: string; |
AIsDir: Boolean |
):string; |
APath |
|
File path to normalize |
Normalized file path
APath |
|
File path to normalize |
AIsDir |
|
Whether the path is a directory |
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.