<html><body>Hello,<br>I'm writing a function to find out if a given directory
is empty. I came up with the obvious:<br><br>do{<br> contents
<- getDirectoryContents
"/home/timothy/works/current/anonGraph/empty/" ;<br> let<br>
realContents<br> =<br> filter<br> (\file
-><br> case file
of<br> "." -> False
;<br> ".." -> False
;<br> _ -> True)<br>
contents<br> in<br> return $<br> case realContents
of<br> [] -> True ;<br> _ -> False}<br><br>And
this works fine on linux, but I wonder. On other systems, is "." and
".." allowed as file names? Couldn't a windows user actually end up with
a file name named "." and this method would fail?<br><br>Thank
you<br>Timothy<br></body></html>