Unit 'fpmkunit' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#fcl]

FixPath

Normalizes and fixes file path format

Declaration

Source position: fpmkunit.pp line 1694

function FixPath(

  const APath: string

):string;

function FixPath(

  const APath: string;

  AIsDir: Boolean

):string;

Arguments

APath

  

File path to normalize

Function result

Normalized file path

Arguments

APath

  

File path to normalize

AIsDir

  

Whether the path is a directory

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.


Documentation generated on: Dec 15 2025