Show: Delphi C++
Display Preferences

System.IOUtils.TDirectory.Exists

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class function Exists(const Path: string; FollowLink: Boolean = True): Boolean; inline; static;

C++

static bool __fastcall Exists(const System::UnicodeString Path, bool FollowLink = true);

Properties

Type Visibility Source Unit Parent
function public
System.IOUtils.pas
System.IOUtils.hpp
System.IOUtils TDirectory

Description

Checks whether a given directory exists.

Use Exists to check whether a given directory exists. Exists returns True if the given path exists and is a directory, and False otherwise.


The following table lists the parameters expected by this method:

Name Meaning

Path

Path of the directory being checked

FollowLink

Specifies whether the symbolic link is used.


Note: If the given path is invalid, the Exists method simply returns False.
Note: If the Path parameter is a symbolic link and the FollowLink parameter is set to True, the method is performed on the target directory. If the first condition is True, but the FollowLink parameter is set to False, the method will be performed on the symbolic link. If the link is broken, the method will always return False.


See Also

Code Examples


Personal tools
In Other Languages
Previous Versions
Assistance