On Mon, Mar 2, 2009 at 1:17 PM, Emmanuel Lecharny <elecha...@apache.org> wrote: > It may be just a matter of checking that the file can be deleted, then check > that the working directory still exists after having done the deletion. If > so, we are golden, otherwise, we have to recreate it, and send an error.
Recreating it will cause several side effects (might change ownership, permissions, inode). > In case the working directory is not empty, the deletion will fail anyway. > > if we don't want to delete the working directory for some reason, we can > rename it. Not convinced this is a very good anyways. As mentioned previously, FTP server file systems are commonly monitored for file changes, concurrent users might access the same directory and so on. I would prefer that we either do or do not do an action, rather than doing it in several steps. Let me whip up a prototype and we can test it on the available platforms. /niklas