basic directory / file generation ok

It works, I'll have to add a system to chosse which extension to handle
during the generation.