change the directory to another representation.