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

Function FindFileOpen

Source/SysPosix/Utility/IOPosix.cpp:188–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186
187
188 bool FindFileOpen( const char * path, FindHandleT * handle, FindDataT & data )
189 {
190 DIR * d = opendir( path );
191 if( d != NULL )
192 {
193 // To support findfirstfile() API we must return the first result immediately
194 if( FindFileNext( d, data ) )
195 {
196 *handle = d;
197 return true;
198 }
199
200 // Clean up
201 closedir( d );
202 }
203
204 return false;
205 }
206
207 bool FindFileNext( FindHandleT handle, FindDataT & data )
208 {

Callers

nothing calls this directly

Calls 1

FindFileNextFunction · 0.70

Tested by

no test coverage detected