|
926 | 926 | says its type \texttt{nlink\_t} is an integer value. |
927 | 927 | \item The parameter \emph{path2} must not exist. So, you cannot rename using |
928 | 928 | the \texttt{link} call. |
929 | | -\item \texttt{unlink} does not work on directories. |
| 929 | +\item \texttt{unlink} does not work on directories, see \texttt{rmdir} on |
| 930 | +p\pageref{RMDIR}. |
930 | 931 | \item The shell command \texttt{mv} uses \texttt{rename} to move objects within |
931 | 932 | the same filesystem. To move files between filesystems, a file needs to be |
932 | 933 | copied first, then \texttt{unlink}ed from the originating filesystem (the whole |
|
991 | 992 | \pdfbookmark[1]{mkdir, rmdir, opendir, readdir, closedir}{dirfncs} |
992 | 993 | ]]]) |
993 | 994 |
|
| 995 | +\hlabel{RMDIR} |
| 996 | + |
994 | 997 | \begin{slide} |
995 | 998 | \sltitle{Working with directories} |
996 | 999 | \texttt{int \funnm{mkdir}(const char *\emph{path}, mode\_t \emph{mode});} |
|
0 commit comments