| 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 | { |
no test coverage detected