function DirectoryExists(DirName: string): boolean;

 

This function checks for the presence or not or the given directory.

 

Parameters

DirName

The full path of the directory to check for. Ex: 'C:\Files\MyDirectory'

Return value

True

The specified directory exists

False

The specified directory does not exist