| 255 | } |
| 256 | |
| 257 | int RecursiveListDir(const string &dir_path, vector<string> *file_paths, vector<string> *sub_dir_paths, |
| 258 | const bool recursive) { |
| 259 | if (file_paths) |
| 260 | file_paths->clear(); |
| 261 | if (sub_dir_paths) |
| 262 | sub_dir_paths->clear(); |
| 263 | |
| 264 | return DoTravelDir(dir_path, "", "", file_paths, sub_dir_paths, recursive); |
| 265 | } |
| 266 | |
| 267 | int RecursiveRemoveDir(const string &dir_path, const bool recursive, const bool remove_root) { |
| 268 | int ret{-1}; |
no test coverage detected