Sign in Join
FPDoc Onlineexperiment

CreateAbsoluteSearchPath function

In unit LazFileUtils

Concatenates BaseDirectory and SearchPath to form an absolute path to search for files.

Declaration

pascal
function CreateAbsoluteSearchPath(const SearchPath: string; 
 const BaseDirectory: string): string

Description

CreateAbsoluteSearchPath concatenates BaseDirectory and SearchPath to form an absolute path to search for files.

The routine adds the appropriate path delimiters to the BaseDirectory string, and adds the search path. Each directory in the search path is examined to ensure that each is also an absolute directory path. The return value contains the fully-formed absolute search path.

If BaseDirectory is empty, the function exits with a return value equal to SearchPath. if SearchPath is empty, the function exits with empty string ('') in the return value.

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.