Sounds like you need to do it yourself. You could use XSL transformation, write
Java code to make the same transformation, or write <code in any other language> to make the same transformation.
Out of curiosity, why do you want a directory structure imported into a UML tool?