Library Version 11.2.5.2

DB_ENV->get_intermediate_dir_mode()
Prev | Chapter 5. The DB_ENV Handle | Next

## DB_ENV->get_intermediate_dir_mode()

    #include <db.h>

    int
    DB_ENV->get_intermediate_dir_mode(DB_ENV *dbenv, const char **modep);

The `DB_ENV->get_intermediate_dir_mode()` method returns the intermediate directory permissions.

Intermediate directories are directories needed for recovery. Normally, Berkeley DB does not create these directories and will do so only if the DB_ENV->set_intermediate_dir_mode() method is called.

The `DB_ENV->get_intermediate_dir_mode()` method may be called at any time during the life of the application.

The `DB_ENV->get_intermediate_dir_mode()` method returns a non-zero error value on failure and 0 on success.

### Parameters

#### modep

The `DB_ENV->get_intermediate_dir_mode()` method returns a reference to the intermediate directory permissions in modep.

### Class

DB_ENV

### See Also

Database Environments and Related Methods

Prev | Up | Next
DB_ENV->get_home() | Home | DB_ENV->get_memory_init()