portapack-mayhem / mayhem-firmware

Custom firmware for the HackRF+PortaPack H1/H2
GNU General Public License v3.0
3.22k stars 530 forks source link

support "clean" files #1983

Closed zxkmm closed 5 months ago

zxkmm commented 5 months ago

today when i'm debugging, i see it's extremely painful that can't recursive del files or at least del multiple files. (i need to clean up DEBUG dir.)

giving the fact that it COULD be dangerous to implement recursive del in simple way (for example when too much sub-levels in stack and it crashed at the half way by out of ram during del, which could leading damage filesystem),

i decided to implement this clean feature, which will do:

tested with up to 200 files and it done very quick

CONSIDER THIS AS AN WORK AROUND, AND WHEN SOMEONE MADE BETTER IMPLEMENTATION, WE CAN REMOVE THIS FEAT.