Restructing of directory