Flatten directory structure