How to get the file size
How to get the file size
Does MicroPython have a method to obtain the size of a file like os.path.getsize(filename)?
Re: How to get the file size
That's ok, but Micropython does not support symbolic field names.
Code: Select all
import uos
info = uos.stat("filename")
filesize = info[6]
Re: How to get the file size
That's exactly what I was looking for. Thank you, both.