MCPcopy Create free account
hub / github.com/coreutils/coreutils / is_linked_directory

Function is_linked_directory

src/ls.c:3640–3645  ·  view source on GitHub ↗

Return true if F refers to a (symlinked) directory. */

Source from the content-addressed store, hash-verified

3638
3639/* Return true if F refers to a (symlinked) directory. */
3640static bool
3641is_linked_directory (const struct fileinfo *f)
3642{
3643 return f->filetype == directory || f->filetype == arg_directory
3644 || S_ISDIR (f->linkmode);
3645}
3646
3647/* Put the name of the file that FILENAME is a symbolic link to
3648 into the LINKNAME field of 'f'. COMMAND_LINE_ARG indicates whether

Callers 1

dirfirst_checkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected