change #getDirectoryName from protected to public