Lines Matching defs:directory

36 "[+DESCRIPTION?If the last argument names an existing directory, \bcp\b"
38 " directory. Otherwise, if only two files are given, \bcp\b copies"
40 " not a directory and more than two files are given. By default"
48 " to the target directory a slash and the specified source file name."
49 " The last argument must be an existing directory. Missing destination"
62 "[+DESCRIPTION?If the last argument names an existing directory, \bln\b"
64 " directory. Otherwise, if only two files are given, \bln\b links"
66 " not a directory and more than two files are given. By default"
72 "[+DESCRIPTION?If the last argument names an existing directory, \bmv\b"
74 " directory. Otherwise, if only two files are given, \bmv\b renames"
76 " not a directory and more than two files are given. If a source and"
116 "file ... directory\n"
147 int directory; /* destination is directory */
239 error(2, "%s: directory causes cycle", ent->fts_path);
264 if (state->directory)
274 if (state->directory)
296 error(ERROR_SYSTEM|2, "%s: cannot create directory -- %s ignored", state->path, ent->fts_path);
320 error(ERROR_SYSTEM|2, "%s: cannot reset directory mode to %s", state->path, fmtmode(st.st_mode & S_IPERM, 0) + 1);
333 error(1, "%s: directory -- copying as plain file", ent->fts_path);
336 error(2, "%s: cannot link directory", ent->fts_path);
343 error(2, "%s: cannot read directory", ent->fts_path);
346 error(2, "%s: cannot search directory", ent->fts_path);
351 if (state->directory)
357 error(2, "%s: not a directory -- %s ignored", state->path, ent->fts_path);
363 error(ERROR_SYSTEM|2, "%s: cannot create directory -- %s ignored", state->path, ent->fts_path);
366 if (!state->directory)
368 state->directory = 1;
394 if (state->directory)
427 error(2, "%s: cannot %s existing directory", state->path, state->opname);
902 if (!(state->directory = !stat(file, &st) && S_ISDIR(st.st_mode)) && argc > 1)
904 if (s && !state->directory)
905 error(3, "%s: not a directory", file);
912 if (state->directory && state->path[state->postsiz - 1] != '/')
916 if (!state->directory)
917 error(3, "%s: last argument must be a directory", file);