Change structure of directory