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

Method rmdir_callback

lib_acl_cpp/samples/scan_rmdir/main.cpp:55–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 ~myscan_dir(void) {}
54
55 bool rmdir_callback(const char* path) {
56 ACL_SCAN_DIR* scan = this->get_scan_dir();
57 check_time(scan, path);
58
59 if (::rmdir(path) == 0) {
60 printf(">> %s: rmdir ok, path=%s\r\n",
61 __FUNCTION__, path);
62 return true;
63 } else {
64 printf(">> %s: rmdir error=%s, path=%s\r\n",
65 __FUNCTION__, acl::last_serror(), path);
66 return false;
67 }
68 }
69};
70
71static void scan_rmdir(acl::scan_dir& scan)

Callers

nothing calls this directly

Calls 2

check_timeFunction · 0.85
last_serrorFunction · 0.50

Tested by

no test coverage detected