jonnyfolk has asked for the wisdom of the Perl Monks concerning the following question:
I was reading in the Camel that it is dangerous for the file structure to unlink a directory rather than use rmdir.
This made me wonder if it is necessary to empty a directory of files by using unlink, before using rmdir, or whether the command rmdir took care of unlinking the files. If this is not the case would the process fail or could the directory delete leaving the file structure in limbo?
Just generally interested - thanks for any enlightenment.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: unlink and rmdir
by ysth (Canon) on Nov 30, 2003 at 11:57 UTC | |
by Roger (Parson) on Nov 30, 2003 at 23:03 UTC | |
|
Re: unlink and rmdir
by calin (Deacon) on Nov 30, 2003 at 16:34 UTC |