MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / FindFileNext

Function FindFileNext

Source/SysPosix/Utility/IOPosix.cpp:207–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205 }
206
207 bool FindFileNext( FindHandleT handle, FindDataT & data )
208 {
209 DAEDALUS_ASSERT( handle != NULL, "Cannot search with invalid directory handle" );
210
211 while (dirent * ep = readdir( static_cast< DIR * >( handle ) ) )
212 {
213 // Ignore hidden files (and '.' and '..')
214 if (ep->d_name[0] == '.')
215 continue;
216
217 IO::Path::Assign( data.Name, ep->d_name );
218 return true;
219 }
220
221 return false;
222 }
223
224 bool FindFileClose( FindHandleT handle )
225 {

Callers 1

FindFileOpenFunction · 0.70

Calls 1

AssignFunction · 0.85

Tested by

no test coverage detected