Re: [AD] al_make_recursive_directory

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


On 2010-10-22, Elias Pschernig <elias.pschernig@xxxxxxxxxx> 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.

There are numerous problems with the patch, which you will discover if
you try it ;)

I assume if the path already exists and is a directory then
al_make_directory should return true.  Also I think the behaviour
should be pushed down to the fshook implementations.

Peter




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