Changed method return type, should make determining whether file or directory much easier.