Convenience function to set directory by name instead of id.

name, string, the "nickname" for the directory

Raises exception if name not valid.

project.set_directory_by_name("Stormantler")