get_number_of_files()

get_number_of_files()#

Get the number of files in a specified directory.

Prototype

PUBLIC int get_number_of_files(
    const char  *path
);
        

Parameters

Key

Type

Description

path

const char *

The path to the directory to count files in.


Return Value

Returns the number of files in the directory, or a negative value on failure.

Prototype

// Not applicable in JS

Prototype

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