Sign in Join
FPDoc Onlineexperiment

FixPath function deprecated

In unit fpMkUnit

Normalizes and fixes file path format

Declaration

pascal
function FixPath(const APath: string): string

Arguments

APath

File path to normalize

Function result

Normalized file path

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.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.