IsDirectoryEmpty function
Return to Introduction  Previous page  Next page
Unit
acUtils  

Declaration
function DirectoryEmpty(DirName: String): Boolean;  

Description
The DirectoryEmpty function determinates wether a directory specified in DirName parameter contains files or subdirectories or it is empty. If the directory is empty, the function returns True. If the directory contains files, the function returns False.  
 
If a full path name is entered, DirectoryEmpty searches for the directory along the designated path. Otherwise, the DirName parameter is interpreted as a relative path name from the current directory.  

See also
DirectoryExists function.