Hi
Thanks for this great code. It's really a marvellous idea!
I wanted to make it work with LitlleFS instead of SPIFFS. I just changed all occurences of 'SPIFFS' by 'LittleFS' and it worked immediately.
I also added a command 'dump file' to print the content of a file in hexadecimal. Youo can take it and add it in your code.
My contribution is here: https://github.com/lesept777/LittleFS-Shell