Open rdehuyss opened 3 years ago
Well, [spiffs] [] actually does not support folders or subdirectories.
They are faked by using filenames that include a /
I assume that in this case where you have overlapping names between your folder and a file, that the folder emulator cannot cope .
I've seen other issues where, using Micropython, I was able to create files in folders that did not exist, and that only showed up after I created the folders.
In your case I think that your main.py
file will show up after you remove the main
folder
Im pretty sure that the current upload code does not try to preempt or correct such overlap, but it would be good to document this just to be sure.
[spiffs] : https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/storage/spiffs.html
Hi Jos,
Well, I see both the main.py
and the main
folder - all code is running fine.
But when I try to delete the main
folder using ota-updater (see https://github.com/rdehuyss/micropython-ota-updater), it fails as there is the py
file still there and cannot be deleted.
It's strange though that I don't have this if I upload the code with ampy.
Groetjes uit Belgie!
Hi Ronald,
I setup a minimal repro using a snippet of your code and can't find the issue you describe See https://github.com/Josverl/rmlist-poc
Ill try to add the ota updater, interesting concept 👍.
QQ : what firmware / chipset are you using , do you know the filesystem ? is it indeed SPIFFS ?
Groeten uit Holland :-)
/jos
Hi Jos,
Mmm, I think I have/had the exact same small repro as you did (I should have attached it in the first place). Will try to set it up again as soon as I have some time. I wonder if it's perhaps related to the version of MicroPython that is runnig (e.g. ESP32_LoBo_v3.2.24) for the M5Stack.
I've only seen the strange file/folder issues on an M5, not on a ESP32 with standard MicroPython.
Groetjes en bedankt om op te volgen!
What are the steps to reproduce this issue?
What happens?
A
py
inode(?) is created in the foldermain
which is un-deletable (it is not a file nor a folder)What were you expecting to happen?
To not have a
py
something (to be honest, I don't know what it is) in the foldermain
.Any logs, error output, etc?
Any other comments?
Thank you for this excellent VSCode extension!!!
What versions of software are you using?
Operating system: Ubuntu 20.04
VSCode version: 1.51.1
Pymakr version: v1.1.7