Implementing fsobj
Posted: Wed Dec 18, 2019 10:47 pm
Hi,
The port I am working on https://github.com/pulkin/micropython/t ... ts/gprs_a9 has, pretty much, a copy-paste implementation of vfs where file and folder-related operations are replaced by static port functions. I think that implementing an actual vfs object might be a better choice such that it can be mounted and dismounted.
https://docs.micropython.org/en/latest/ ... #uos.mount
Is it true? Presumably, I need to provide various entry points for vfs, like reading files, list folders, etc. How do I do that? Is there a list of such operations?
The port I am working on https://github.com/pulkin/micropython/t ... ts/gprs_a9 has, pretty much, a copy-paste implementation of vfs where file and folder-related operations are replaced by static port functions. I think that implementing an actual vfs object might be a better choice such that it can be mounted and dismounted.
https://docs.micropython.org/en/latest/ ... #uos.mount
Is it true? Presumably, I need to provide various entry points for vfs, like reading files, list folders, etc. How do I do that? Is there a list of such operations?