MCPcopy Create free account
hub / github.com/git/git / clear_dir

Function clear_dir

t/unit-tests/u-reftable-stack.c:22–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20#include <dirent.h>
21
22static void clear_dir(const char *dirname)
23{
24 struct strbuf path = REFTABLE_BUF_INIT;
25 strbuf_addstr(&path, dirname);
26 remove_dir_recursively(&path, 0);
27 strbuf_release(&path);
28}
29
30static int count_dir_entries(const char *dirname)
31{

Calls 3

strbuf_addstrFunction · 0.85
remove_dir_recursivelyFunction · 0.85
strbuf_releaseFunction · 0.85