udoprog / c10t

A minecraft cartography tool
Other
225 stars 50 forks source link

Checking for nested directories in --cache-key #229

Closed Sworddragon closed 12 years ago

Sworddragon commented 12 years ago

If there are nested directories in --cache-key c10t is terminating if the directory doesn't exist:

sworddragon@ubuntu:~/data$ c10t -w /srv/minecraft/world -o world.png -R 100 --cache-key='tmp/tmp' Creating directory for caching: cache/tmp/tmp terminate called after throwing an instance of 'boost::filesystem3::filesystem_error' what(): boost::filesystem::create_directory: No such file or directory: "cache/tmp/tmp"

I think c10t should check if the nested directory exists like it does with the top level directory (./cache).

uap-universe commented 12 years ago

The subdirecotires will be created now.