<html><body>Hello,<br>I'm writing a function to find out if a given directory 
is empty.&nbsp; I came up with the obvious:<br><br>do{<br>&nbsp;contents 
&lt;-&nbsp; getDirectoryContents 
"/home/timothy/works/current/anonGraph/empty/" ;<br>&nbsp;let<br>&nbsp; 
realContents<br>&nbsp;&nbsp;&nbsp; =<br>&nbsp; filter<br>&nbsp;&nbsp; (\file 
-&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; case file 
of<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "." -&gt; False 
;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ".." -&gt; False 
;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _ -&gt; True)<br>&nbsp;&nbsp; 
contents<br>&nbsp;in<br>&nbsp;return $<br>&nbsp; case realContents 
of<br>&nbsp;&nbsp; [] -&gt; True ;<br>&nbsp;&nbsp; _ -&gt; False}<br><br>And 
this works fine on linux, but I wonder.&nbsp; On other systems, is "." and 
".." allowed as file names?&nbsp; 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>