www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - mkdirRecurse behaving strangly

I want to extract some files from a game archive providing path strings 
like "data/ai/campaign/leaders.csv".
So I tried mkdirRecurse to create the directory structure, this works 
fine but also creates folders named after the files, "leaders.csv" in 
this case.
So I added dirname:

This doesn't work, telling that it can't create a folder that already 
Jul 08 2009