My idea is to use uos.stat()
However there is not much documentation.
So I tried this:
Code: Select all
>>> import uos
>>> uos.stat('SD') # this is a folder
(16384, 0, 0, 0, 0, 0, 536892856, 0, 0, 0)
>>> uos.stat('filetools.py') # this is a file
(32768, 0, 0, 0, 0, 0, 1507, 1609470216, 1609470216, 1609470216)