GPAK  1.0.0
A general-purpose archive library

◆ gpak_find_directory()

GPAK_API struct filesystem_tree_node* gpak_find_directory ( gpak_t _pak,
const char *  _path 
)
Brief Description:\n Finds a directory in a G-PAK archive.

This function searches for a directory with the specified _path in the G-PAK archive.

Parameters
_pakA pointer to the gpak_t.
_pathA string containing the path of the directory to find.
Returns
A pointer to the found directory node or NULL if not found.

Definition at line 373 of file gpak.c.

374 {
375  if (_pak == NULL)
376  return NULL;
377 
378  return filesystem_tree_find_directory(_pak->root_, _path);
379 }
GPAK_API filesystem_tree_node_t * filesystem_tree_find_directory(filesystem_tree_node_t *_root, const char *_path)
struct filesystem_tree_node * root_
Definition: gpak_data.h:260

References filesystem_tree_find_directory(), and gpak::root_.