Get the number of (compliant) items in the folder
| 238 | // Get the number of (compliant) items in the folder |
| 239 | // |
| 240 | int16_t CardReader::countVisibleItems(MediaFile dir) { |
| 241 | dir_t p; |
| 242 | int16_t c = 0; |
| 243 | dir.rewind(); |
| 244 | while (dir.readDir(&p, longFilename) > 0) c += is_visible_entity(p); |
| 245 | return c; |
| 246 | } |
| 247 | |
| 248 | // |
| 249 | // Get file/folder info for an item by index |