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.
In reply to unlink and rmdir by jonnyfolk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |