MCPcopy Create free account
hub / github.com/Tencent/phxqueue / RecursiveListDir

Function RecursiveListDir

phxqueue/comm/utils/file_util.cpp:257–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257int 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
267int RecursiveRemoveDir(const string &dir_path, const bool recursive, const bool remove_root) {
268 int ret{-1};

Callers 2

GetCheckpointStateMethod · 0.85
RemoveDir2Function · 0.85

Calls 1

DoTravelDirFunction · 0.85

Tested by

no test coverage detected