12 Oct
2007
12 Oct
'07
5:21 p.m.
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.)