Search found 1 match

by ObiTwoKenobi
Sat Aug 07, 2021 5:15 pm
Forum: ESP8266 boards
Topic: How to get free space of internal file system?
Replies: 13
Views: 25754

Re: How to get free space of internal file system?

import uos, esp
blksize = uos.statvfs('/')[0]
fbs = uos.statvfs('/')[3]
print ("Avilable storage is:",(blksize*fbs)/1024, "KB", "out of:", esp.flash_size()/1024,"KB",sep=" ")