Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > Delphi: Общие вопросы > Как проверить, существует ли папка


Автор: ДЫМ 24.7.2004, 01:13
Как проверить, существует ли папка, если в ней нет ни одного файла

Автор: Cheba 24.7.2004, 01:22
function DirectoryExists(const Directory: 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 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.

Читайте доки. Это все от туда.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)