GRASS Programmer's Manual
6.4.4(2014)-r
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
isdir.c
Go to the documentation of this file.
1
#include <grass/dbmi.h>
2
#include <unistd.h>
3
#include <sys/types.h>
4
#include <sys/stat.h>
5
12
int
db_isdir
(
const
char
*path)
13
{
14
struct
stat x;
15
16
if
(stat(path, &x) != 0)
17
return
DB_FAILED;
18
return
(S_ISDIR(x.st_mode) ? DB_OK : DB_FAILED);
19
}
db_isdir
int db_isdir(const char *path)
Definition:
isdir.c:12
lib
db
dbmi_base
isdir.c
Generated on Wed Mar 18 2015 05:21:42 for GRASS Programmer's Manual by
1.8.9.1