Go to the source code of this file.
Functions | |
| int | read_directory (char *dir_name, struct file_list *flist) |
| List the content of a directory (compatible SUN/LINUX). | |
| int | read_directory_only (char *dir_name, struct file_list *flist_out) |
| List the content of a directory, and keeps only the directories. | |
| void | free_file_list (struct file_list *flist) |
| Free all allocated memory after you called read_directory(). | |
| int | base_dir_name (char *dirname, char **res) |
| Extract the directory base name from a file name. | |
Definition in file dir.c.
|
||||||||||||
|
Extract the directory base name from a file name.
Definition at line 187 of file dir.c. References BASE_DIR_FOUND, BASE_DIR_NO_MEM, and BASE_DIR_NOT_FOUND. |
|
|
Free all allocated memory after you called read_directory().
Definition at line 162 of file dir.c. References file_list::list, file_list::num, and file_list::total_alloc. Referenced by read_directory_only(). |
|
||||||||||||
|
List the content of a directory (compatible SUN/LINUX).
Definition at line 18 of file dir.c. References FILE_NUMBER, file_list::list, file_list::num, and file_list::total_alloc. Referenced by read_directory_only(). |
|
||||||||||||
|
List the content of a directory, and keeps only the directories.
Definition at line 87 of file dir.c. References free_file_list(), file_list::list, file_list::num, read_directory(), and file_list::total_alloc. |
1.3-rc1