GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
isdir.c File Reference

DBMI Library (base) - test for directories. More...

#include <grass/config.h>
#include <grass/dbmi.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
Include dependency graph for isdir.c:

Go to the source code of this file.

Functions

int db_isdir (const char *path)
 Test if path is a directory. More...
 

Detailed Description

DBMI Library (base) - test for directories.

(C) 1999-2009, 2011 by the GRASS Development Team

This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.

Author
Joel Jones (CERL/UIUC), Radim Blazek
Doxygenized by Martin Landa <landa.martin gmail.com> (2011)

Definition in file isdir.c.

Function Documentation

◆ db_isdir()

int db_isdir ( const char *  path)

Test if path is a directory.

Parameters
pathpathname
Returns
DB_OK on success
DB_FAILED on failure

Definition at line 29 of file isdir.c.

References DB_FAILED, and DB_OK.