[Overview][Constants][Types][Procedures and functions][Variables][Index] Reference for unit 'LazFileUtils' (#lazutils)

IsUNCPath

Indicates if the specified path uses Universal Naming Convention (UNC).

Declaration

Source position: lazfileutils.pas line 161

function IsUNCPath(

  const Path: string

):Boolean;

Arguments

Path

  

Path examined in the function.

Function result

True when the path contains UNC notation.

Description

IsUNCPath is a Boolean function which indicates is the specified path uses Universal Naming Convention (UNC).

The implementation of IsUNCPath is platform- and/or OS-specific. For the Windows platform, IsUNCPath checks Path to see if it begins with the double backslash notation used for a UNC path. For example:

\\C:\directory\
\\?\C:\directory\
\\?\UNC\volume\directory\

For UNIX-like environments, as well as the Amiga platform, the return value is always False. UNC paths are not used on those platforms.

Use ExtractUNCVolume to get host and path information from a file name expressed using UNC notation.


Version 3.2 Generated 2024-02-25 Home