I cannot build a filesystem image. I have tried re-creating the project of using a filesystem many times but at the point when I try to build a filesystem image, I get the following error:
Building in release mode
Building SPIFFS image from ‘data’ directory to .pio\build\esp32doit-devkit-v1\spiffs.bin
error: can’t read source directory
*** [.pio\build\esp32doit-devkit-v1\spiffs.bin] Error 1
================================ [FAILED] Took 1.30 seconds ================================
The terminal process “C:\Users\Steve\.platformio\penv\Scripts\pio.exe ‘run’, ‘–target’, ‘buildfs’, ‘–environment’, ‘esp32doit-devkit-v1′” terminated with exit code: 1.
I have tried uninstalling and reinstalling visual studio code and the pio editor, but nothing has helped. When I compile the code the spiffs seem to load properly.
As always, thanks for your help.
Steve
P.S. I started to post this question a minute ago, but hit return too soon. Please remove my earlier incomplete question.
Hi.
Can you tell me where do you have your data folder?
Can you show me a print screen of the project File Explorer on VS Code?
I think that your data folder is not in the right location. It should be under the project folder, not under the src folder.
Regards,
Sara
Thanks, Sara, that solved it – I had my data folder in the wrong location. Please mark as resolved.
Steve