* To my surprise, XFS doesn't support dt_type in readdir results, so we need to stat each entry of type DT_UNKNOWN.

This commit is contained in:
Justin Maggard
2009-06-04 22:32:10 +00:00
parent 41a6830952
commit a295b448ba
5 changed files with 128 additions and 84 deletions

12
utils.h
View File

@ -28,4 +28,16 @@ strip_ext(char * name);
int
make_dir(char * path, mode_t mode);
int
is_video(const char * file);
int
is_audio(const char * file);
int
is_image(const char * file);
int
resolve_unknown_type(const char * path, enum media_types dir_type);
#endif