DirectoryExists determines whether a specified directory exists.
Unit
FileCtrl
Category
file management routines
function DirectoryExists(Name: string): Boolean;
Description
Call DirectoryExists to determine whether the directory specified by the Name parameter exists. If the directory exists, the function returns True. If the directorydo
es not exist, the function returns False.
If a full path name is entered, DirectoryExists searches for the directory along the designated path. Otherwise, the Name parameter is interpreted as a relative path name within the current directory.