in reply to how to create the path automatically
The function is called mkpath, not make_path. Also, you don't need to check for the existence; mkpath takes care of this by itself.