![]() |
Nilorea Library
C utilities for networking, threading, graphics
|
Data Structures | |
| struct | N_FILE_INFO |
| common file information More... | |
Functions | |
| void | n_free_file_info (void *ptr) |
| free a N_FILE_INFO struct | |
| int | n_scan_dir (const char *dir, LIST *result, const int recurse) |
| Scan given directory and return a LIST of char. | |
| struct N_FILE_INFO |
| void n_free_file_info | ( | void * | ptr | ) |
free a N_FILE_INFO struct
| ptr | the pointer to the struct to free |
Definition at line 15 of file n_files.c.
References __n_assert, and N_FILE_INFO::name.
Referenced by n_scan_dir().
Here is the caller graph for this function:| int n_scan_dir | ( | const char * | dir, |
| LIST * | result, | ||
| const int | recurse | ||
| ) |
Scan given directory and return a LIST of char.
Only files are listed.
| dir | The directory to scan |
| result | An empty LIST ptr. Will be filled by a char list of result, sorted by time |
| recurse | TRUE or FALSE to enable / disable recursion |
Definition at line 70 of file n_files.c.
References __n_assert, N_FILE_INFO::filetime, N_FILE_INFO::filetime_nsec, list_push_sorted(), LOG_ERR, Malloc, n_comp_file_info(), n_free_file_info(), n_log, n_scan_dir(), and N_FILE_INFO::name.
Referenced by n_scan_dir().
Here is the call graph for this function:
Here is the caller graph for this function: