getDirectoryContents without special directories "." and ".."

Henning Thielemann lemming at henning-thielemann.de
Sat Dec 13 19:49:11 UTC 2014


Whenever I call System.Directory.getDirectoryContents, the first thing I 
do is to filter out "." and "..". Is there a portable and simple way to do 
this?

I even think that "." and ".." should not be part of the result at all, 
but that's a different discussion.


More information about the Libraries mailing list