Flatten directory