reconstruct folder directories.