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

Method set_rmdir_callback

lib_acl_cpp/src/stdlib/scan_dir.cpp:83–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83void scan_dir::set_rmdir_callback(int (*fn)(ACL_SCAN_DIR*, const char*, void*),
84 void* ctx)
85{
86 if (scan_ == NULL) {
87 logger_error("please call scan_dir::open first!");
88 return;
89 }
90
91 acl_scan_dir_ctl(scan_, ACL_SCAN_CTL_RMDIR_FN, fn,
92 ACL_SCAN_CTL_CTX, ctx, ACL_SCAN_CTL_END);
93}
94
95int scan_dir::rmdir_def(ACL_SCAN_DIR*, const char* path, void* ctx)
96{

Callers 1

rmdir_on_empty2Function · 0.80

Calls 1

acl_scan_dir_ctlFunction · 0.85

Tested by

no test coverage detected