How to get the file size
Posted: Tue Nov 28, 2017 8:03 am
Does MicroPython have a method to obtain the size of a file like os.path.getsize(filename)?
Please see the new forum at
https://forum.micropython.org/
Code: Select all
import uos
info = uos.stat("filename")
filesize = info[6]