check if there is enough flash space on the sd card before scan. and/or raise exception when disk is full
check if there is enough flash space on the sd card before scan.
and/or raise exception when disk is full