[cvs-nhc98] patch applied (yhc): Fix up getDirectoryList to have the same semantics as before (by stealing the code from the filepath library)