cctools
Functions
clean_dir.h File Reference

Go to the source code of this file.

Functions

int clean_dir (const char *dir, const char *delete_pattern)
 Recursively remove all entries in a directory tree that match a given pattern. More...
 

Function Documentation

int clean_dir ( const char *  dir,
const char *  delete_pattern 
)

Recursively remove all entries in a directory tree that match a given pattern.

Parameters
dirThe directory to traverse.
delete_patternThe pattern of filenames to match and delete.