$ include "seed7_05.s7i"; include "osfiles.s7i"; const func boolean: dirEmpty (in string: dirName) is return fileType(dirName) = FILE_DIR and length(readDir(dirName)) = 0; const proc: main is func begin writeln(dirEmpty("somedir")); end func;