Topic Path: Symbol Reference > Functions > DirectoryExists Function
ContentsIndexHome
PreviousUpNext
DirectoryExists Function

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

File
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

Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.