blob: fc95e5275a826ad67e31c82effb9485a07aa3f78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/* 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);
}
|