adapap / OWScript

Python-like scripting language which transpiles into Overwatch Workshop script rulesets.
MIT License
37 stars 2 forks source link

Recursively generate output directory on save. #28

Closed MatthewSH closed 5 years ago

MatthewSH commented 5 years ago

When you try to save to a directory that doesn't exist, it just fails out. Maybe we should looking at recursively creating the directories to get to the output.

adapap commented 5 years ago

Going off of #27, since Python will throw a FileNotFound error, I think the best approach would be to output the error and exit with a unique status code.