I notice that getDirectoryContents appears to return its results in alphabetical order. Is this behaviour actually guaranteed?

Related: Is there a way to get rid of "." and ".." in the results? (Obviously this causes directory recusion to malfunction.) I can of course manually filter them out, but it's annoying.

Finally, why do

 doesDirectoryExist "C:"
 doesDirectoryExist "C:\"

both yield False? (This frequently trips up programs that try to check that a destination folder exists.)

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to