MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / listDirInDir

Function listDirInDir

extlibs/elzip/src/elzip_fs_fallback.cpp:50–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50std::vector<std::string> listDirInDir(std::string path) {
51 tinydir_dir dir;
52 tinydir_open(&dir, path.c_str());
53
54 std::vector<std::string> fileList;
55 while (dir.has_next)
56 {
57 tinydir_file file;
58 tinydir_readfile(&dir, &file);
59 if (file.is_dir)
60 {
61 if (std::string(file.name) != "." && std::string(file.name) != "..") { fileList.push_back(std::string(file.name)); }
62 }
63 tinydir_next(&dir);
64 }
65 tinydir_close(&dir);
66 return fileList;
67}
68
69std::string join(std::vector<std::string>& vector, std::string sep, int start, int end)
70{

Callers 1

extractZipFunction · 0.85

Calls 5

tinydir_nextFunction · 0.85
tinydir_closeFunction · 0.85
stringClass · 0.50
c_strMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected