DFPlayer readFileCountsInFolder returns non zero value if folder is empty
Hi
I have 5 folders in the SD card with 1 mp3 file each in 4 folders. However when traversing through the folders for filecounts the empty folder always return 1 with no error.
SD Card folder structure
ROOT
---- 10 (Empty)
---- 11
------------001.mp3
---- 12
------------001.mp3
---- 13
------------001.mp3
---- 14
------------001.mp3
In fact even if i pass an non existent folder no like 20 it still returns 1. I can play the mp3 files perfectly fine and everything else works the way it should. I just need to know if the folder is empty
I have 5 folders in the SD card with 1 mp3 file each in 4 folders. However when traversing through the folders for filecounts the empty folder always return 1 with no error.
SD Card folder structure
ROOT
---- 10 (Empty)
---- 11
------------001.mp3
---- 12
------------001.mp3
---- 13
------------001.mp3
---- 14
------------001.mp3
In fact even if i pass an non existent folder no like 20 it still returns 1. I can play the mp3 files perfectly fine and everything else works the way it should. I just need to know if the folder is empty