Micropython Space libre ESP32 ESP2866
def df():
s = os.statvfs('//')
return ('{0} MB'.format((s[0]*s[3])/1048576))
Crazy Capuchin
def df():
s = os.statvfs('//')
return ('{0} MB'.format((s[0]*s[3])/1048576))