| 26 | } |
| 27 | |
| 28 | static void ls_dir(acl::scan_dir& scan, const char* path, bool recursive, |
| 29 | bool fullpath) |
| 30 | { |
| 31 | if (scan.open(path, recursive) == false) { |
| 32 | logger_error("open path: %s error: %s", path, acl::last_serror()); |
| 33 | return; |
| 34 | } |
| 35 | |
| 36 | int ndirs = 0; |
| 37 | const char* dirname; |
| 38 | |
| 39 | while ((dirname = scan.next_dir(fullpath)) != NULL) { |
| 40 | logger("dirname: %s, path: %s", dirname, scan.curr_path()); |
| 41 | ndirs++; |
| 42 | } |
| 43 | |
| 44 | logger("==========================================================="); |
| 45 | logger("total dir count: %d", ndirs); |
| 46 | } |
| 47 | |
| 48 | static void ls_all(acl::scan_dir& scan, const char* path, bool recursive, |
| 49 | bool fullpath) |
no test coverage detected
searching dependent graphs…