Defines | |
#define | LAST_CHAR(buf) buf[strlen(buf)-1] |
get last char of buffer | |
#define | DIRSEP '/' |
define directory seperator here | |
Functions | |
int | sb_dir_is_dir (char *dirpath) |
Check if path is a directory. | |
int | sb_dir_remove (char *dirpath) |
Remove one directory if it is empty. | |
int | sb_dir_mkdirs (const char *pathname, mode_t mode, int *error) |
Make directories and all missing parent directories. | |
int | sb_dir_rmdirs (char *dirname) |
Remove directories and file recursivly. |
This module provides functions for handling directories.
|
Check if path is a directory.
Definition at line 51 of file dir.c. Referenced by mntd_volume_g_build_mntpnt(), mntd_volume_mount(), sb_dir_mkdirs(), sb_dir_remove(), and sb_dir_rmdirs(). |
|
Make directories and all missing parent directories.
Definition at line 83 of file dir.c. References sb_dir_is_dir(). Referenced by mntd_volume_mount(). |
|
Remove one directory if it is empty.
Definition at line 69 of file dir.c. References sb_dir_is_dir(). Referenced by mntd_volume_mount(), and mntd_volume_umount(). |
|
Remove directories and file recursivly.
Definition at line 149 of file dir.c. References LAST_CHAR, sb_dir_is_dir(), sb_file_is_file(), and sb_file_remove(). Referenced by mntd_volume_mount(). |