-
- Downloads
extmod: Add generic VFS sub-system.
This provides mp_vfs_XXX functions (eg mount, open, listdir) which are agnostic to the underlying filesystem type, and just require an object with the relevant filesystem-like methods (eg .mount, .open, .listidr) which can then be mounted. These mp_vfs_XXX functions would typically be used by a port to implement the "uos" module, and mp_vfs_open would be the builtin open function. This feature is controlled by MICROPY_VFS, disabled by default.
Showing
- extmod/vfs.c 310 additions, 0 deletionsextmod/vfs.c
- extmod/vfs.h 60 additions, 0 deletionsextmod/vfs.h
- extmod/vfs_reader.c 97 additions, 0 deletionsextmod/vfs_reader.c
- py/lexer.c 1 addition, 1 deletionpy/lexer.c
- py/mpconfig.h 10 additions, 0 deletionspy/mpconfig.h
- py/mpstate.h 5 additions, 0 deletionspy/mpstate.h
- py/py.mk 2 additions, 0 deletionspy/py.mk
- py/qstrdefs.h 1 addition, 0 deletionspy/qstrdefs.h
- py/runtime.c 6 additions, 0 deletionspy/runtime.c
Loading
Please register or sign in to comment