Internet Direct (Indy)
Home
PreviousUpNext
DirectoryExists Function

Indicates if the specified path already exists in the local file system.

Pascal
function DirectoryExists(
    const Directory: string
): Boolean;
Parameters 
Description 
Directory 
Type is string. 

Boolean - True if the Directory already exists.

DirectoryExists is a Boolean function used to indicate if the specified Directory alreadys exists in the local file system. 

DirectoryExists returns True when the value in Directory is a valid file path that already exists in the local file system. If the specified value is not a valid file path, or the patyh does not exist, DirectoryExists returns the value False. 

Please note that DirectoryExists is declared for the Delphi 5 compiler only to avoid a dependency on the FileCtrl.pas unit in the Delphi 5 VCL. You may also use class methods in TIdSysVCL for the platform hosting the Indy library to access portable file handling methods.

TIdSys.pas 

Sys 

TIdSysVCL

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.