apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Collins-Sussman <suss...@collab.net>
Subject Re: [PATCH] apr_dir_remove_recursively
Date Wed, 23 May 2001 15:31:28 GMT
"William A. Rowe, Jr." <admin@rowe-clan.net> writes:

> > I agree.  I'm thinking of rewriting it to leave files behind.  I
> > suspect the routine could return either APR_SUCCESS (if nothing but
> > was left behind), or some not-yet-invented error code that
> > specifically means it wasn't able to remove everything.
> should simply return the error that the _remove returned, so if there is
> an error, there was some reason it wasn't completed.  But it still completes
> all that it is allowed.

What if 3 different files in the tree (scattered about) are
un-removable for different reasons?  This function still removes
everything else and finishes its recursion.  Which of the three status
codes should it return?

View raw message