MCPcopy Create free account
hub / github.com/acl-dev/acl / rmdir_on_empty

Function rmdir_on_empty

lib_acl_cpp/samples/scan_rmdir/main.cpp:93–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93static bool rmdir_on_empty(const char* path, bool recursive, bool rmdir_on)
94{
95 myscan_dir scan;
96
97 if (scan.open(path, recursive, rmdir_on) == false) {
98 printf("open path: %s error: %s\r\n", path, acl::last_serror());
99 return false;
100 }
101
102
103 scan_rmdir(scan);
104 return true;
105}
106
107static int rmdir_fn(ACL_SCAN_DIR* scan, const char* path, void* ctx)
108{

Callers 1

mainFunction · 0.85

Calls 3

scan_rmdirFunction · 0.85
last_serrorFunction · 0.50
openMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…