mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 11:10:14 +01:00
extmod/modvfs: Add new "vfs" module with mount/umount and Vfs classes.
They have been moved from the "os" module. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -195,6 +195,10 @@ STATIC const mp_rom_map_elem_t os_module_globals_table[] = {
|
||||
|
||||
#if MICROPY_VFS
|
||||
{ MP_ROM_QSTR(MP_QSTR_ilistdir), MP_ROM_PTR(&mp_vfs_ilistdir_obj) },
|
||||
#endif
|
||||
|
||||
// The following MicroPython extensions are deprecated. Use the `vfs` module instead.
|
||||
#if !MICROPY_PREVIEW_VERSION_2 && MICROPY_VFS
|
||||
{ MP_ROM_QSTR(MP_QSTR_mount), MP_ROM_PTR(&mp_vfs_mount_obj) },
|
||||
{ MP_ROM_QSTR(MP_QSTR_umount), MP_ROM_PTR(&mp_vfs_umount_obj) },
|
||||
#if MICROPY_VFS_FAT
|
||||
|
||||
Reference in New Issue
Block a user