2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
12
Task/Empty-directory/Standard-ML/empty-directory.ml
Normal file
12
Task/Empty-directory/Standard-ML/empty-directory.ml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
fun isDirEmpty(path: string) =
|
||||
let
|
||||
val dir = OS.FileSys.openDir path
|
||||
val dirEntryOpt = OS.FileSys.readDir dir
|
||||
in
|
||||
(
|
||||
OS.FileSys.closeDir(dir);
|
||||
case dirEntryOpt of
|
||||
NONE => true
|
||||
| _ => false
|
||||
)
|
||||
end;
|
||||
Loading…
Add table
Add a link
Reference in a new issue