MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / next

Method next

src/common/ScanDir.cpp:79–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79bool ScanDir::next()
80{
81#ifdef _WIN32
82 if (handle == NULL)
83 {
84 handle = FindFirstFile ((directory + "\\" + pattern).c_str(), &data);
85 return handle != INVALID_HANDLE_VALUE;
86 }
87
88 return FindNextFile (handle, &data) != 0;
89#else
90 if (!dir)
91 return false;
92
93 while ((data = os_utils::readdir (dir)))
94 {
95 if (match (pattern.c_str(), data->d_name))
96 return true;
97 }
98
99 return false;
100#endif
101}
102
103const char* ScanDir::getFileName()
104{

Callers 1

do_msgsFunction · 0.45

Calls 2

readdirFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected