Modify directory tree