Reconstruct the directory