Flatten directory.