IsDirectoryEmpty function
|
![]() ![]() ![]() |
acUtils
|
function DirectoryEmpty(DirName: String): Boolean;
|
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.
|
DirectoryExists function.
|