mirror of
https://github.com/opnsense/src.git
synced 2026-04-01 07:25:10 -04:00
18 lines
278 B
C
18 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);
|
|
}
|