Clarified getDirectory example usage