You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While playing around with sleep logging for a while, I ended up saving a lot of files on my pinetime.
The issue is that my folder logs/sleep contains so many files that I get a memory error trying to display it, so I can't remove those files because I can't get their names.
I tried playing around with things like for l in os.listdir("logs/sleep"): os.remove(l) but I still get the memory error, even by launching it in the first line of main.py.
Any idea how I could solve this? I stumbled upon os.ilistdirlink which returns a generator instead of a full list but it does not seem implemented in waspos.
The text was updated successfully, but these errors were encountered:
I think the simplest way to reset this would be to backup anything you need from the filesystem and then boot into safe mode, umount /flash and run mkfs by hand.
Hi!
While playing around with sleep logging for a while, I ended up saving a lot of files on my pinetime.
The issue is that my folder
logs/sleep
contains so many files that I get a memory error trying to display it, so I can't remove those files because I can't get their names.I tried playing around with things like
for l in os.listdir("logs/sleep"): os.remove(l)
but I still get the memory error, even by launching it in the first line of main.py.Any idea how I could solve this? I stumbled upon
os.ilistdir
link which returns a generator instead of a full list but it does not seem implemented in waspos.The text was updated successfully, but these errors were encountered: