summaryrefslogtreecommitdiffstatshomepage
path: root/extmod/modos.c
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2023-10-13 14:53:02 +1100
committerDamien George <damien@micropython.org>2024-02-07 13:25:08 +1100
commite7020463f1114317988ffef21663df5cc8c62ba9 (patch)
tree30235251cd25ad935fcc1a5c1210c634488ab662 /extmod/modos.c
parentaaba1d8a6c8ee6edae0025df56055e309dd05234 (diff)
downloadmicropython-e7020463f1114317988ffef21663df5cc8c62ba9.tar.gz
micropython-e7020463f1114317988ffef21663df5cc8c62ba9.zip
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>
Diffstat (limited to 'extmod/modos.c')
-rw-r--r--extmod/modos.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/extmod/modos.c b/extmod/modos.c
index 5a088b5202..24a36cb8ce 100644
--- a/extmod/modos.c
+++ b/extmod/modos.c
@@ -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