Re: [PATCH] Do _not_ call unlink on a directory
- From
- Thomas Glanzmann <thomas@glanzmann.de>
- Date
- Jul 16, 2007, 20:25 UTC
- Message-ID
- <20070716202550.GH16878@cip.informatik.uni-erlangen.de>
- In-Reply-To
- <alpine.LFD.0.999.0707161315120.20061@woody.linux-foundation.org>
Hello,
> > is there a reason why we call unlink and not remove?
> Exactly because we only want to remove _files_.
of course. That is the whole point. Call unlink for files, rmdir for directories.
Thomas