freebsd-dev/gnu/libexec/uucp/libunix/isdir.c
1993-08-05 18:28:27 +00:00

19 lines
278 B
C

/* isdir.c
See whether a file exists and is a directory. */
#include "uucp.h"
#include "system.h"
#include "sysdep.h"
boolean
fsysdep_directory (z)
const char *z;
{
struct stat s;
if (stat ((char *) z, &s) < 0)
return FALSE;
return S_ISDIR (s.st_mode);
}