saltstack/salt — pull request #4469 by alangarf (2013-04-11 01:07:06+00:00)
Title: Fixed bug in file.makedirs where the requested directory is never created

Hi guys,

It seems illogical to me to have a function called makedirs assume the last thing on the given path is always removed. So for example:

salt "*" file.makedirs /srv/test/woo/ or salt "*" file.makedirs /srv/test/woo

Would only create '/srv/test' not '/srv/test/woo/'

I'd assume it would function the same as 'mkdir' in that the path given is always just directories. eg. 'mkdir /srv/test/woo/foo.sh' would result in '/srv/test/woo/foo.sh/'

Is the current usage correct for this module function? If so, it seems broken to me.

Thanks,
-A.