Implement get_name method override for the Directory object