is_directory()

is_directory()#

The is_directory() function checks whether the given path corresponds to a directory by using the stat() system call.

Prototype

BOOL is_directory(const char *path);

Parameters

Key

Type

Description

path

const char *

The file system path to check.


Return Value

Returns TRUE if the path is a directory, otherwise returns FALSE.

Notes

This function relies on stat() to determine the file type. If stat() fails, the function returns FALSE.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples