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

Function isdir

src/realpath.c:158–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158static bool
159isdir (char const *path)
160{
161 struct stat sb;
162 if (stat (path, &sb) != 0)
163 error (EXIT_FAILURE, errno, _("cannot stat %s"), quoteaf (path));
164 return S_ISDIR (sb.st_mode);
165}
166
167static bool
168process_path (char const *fname, int can_mode)

Callers 1

mainFunction · 0.85

Calls 1

statClass · 0.70

Tested by

no test coverage detected