reconstruct file tree