Modify the directory tree and corresponding things.