langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
10
Task/Empty-directory/Seed7/empty-directory.seed7
Normal file
10
Task/Empty-directory/Seed7/empty-directory.seed7
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
$ 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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue