InbarRose / irtools

A collection of useful tools for Automation, Devops, or anything really
MIT License
4 stars 1 forks source link

check_makedir should be able to receive filepaths, and automatically create the dir #37

Closed InbarRose closed 5 years ago

InbarRose commented 5 years ago

check_makedir should be able to receive filepaths, and automatically create the dir

it is very common use-case to want to create a dir for a file before writing the file.

InbarRose commented 5 years ago

wont do this, because it is impossible to tell given a string to a path that doesn't exist if it should be a file or a dirname...