added .suffix support for getDirectory methods