Get number of files and directories in a directory (POSIX functions opendir, readdir, closedir)
function getNumberOfFiles extends Modelica.Icons.Function; input String directory "Directory name"; output Integer result "Number of files and directories present in 'directory'"; end getNumberOfFiles;