UnitSysUtilsor FileCtrlCategoryfile management routinesfunction DirectoryExists(const Directory: string): Boolean;DescriptionCall DirectoryExists to determine whether the directory specified by the Name parameter exists. If the directory exists, the function returns True. If the directory does 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 from the current directory.Note: DirectoryExists is also found in the FileCtrl unit.