Re: [AD] al_make_recursive_directory

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On October 22, 2010, Elias Pschernig wrote:
> On Fri, 2010-10-22 at 09:32 +1100, Peter Wang wrote:
> > Any reason not to just extend al_make_directory?
> 
> Hm, thinking about it, that's the most useful behavior as it's very
> unlikely you want the function to fail if the parent doesn't exist. The
> attached patch changes is accordingly.

Unless you make a typo. Then its creating nonsense dirs ;D

If C had default vars I'd suggest making it take a second arg saying if it 
should make the full path recursively.

-- 
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/