.directory is now .dirname