Change hierarchy of directory