docs/library: Move vfs functions and classes from os to vfs module docs.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -40,7 +40,7 @@ Block devices
|
||||
-------------
|
||||
|
||||
A block device is an instance of a class that implements the
|
||||
:class:`os.AbstractBlockDev` protocol.
|
||||
:class:`vfs.AbstractBlockDev` protocol.
|
||||
|
||||
Built-in block devices
|
||||
~~~~~~~~~~~~~~~~~~~~~~
|
||||
@@ -116,8 +116,8 @@ It can be used as follows::
|
||||
|
||||
An example of a block device that supports both the simple and extended
|
||||
interface (i.e. both signatures and behaviours of the
|
||||
:meth:`os.AbstractBlockDev.readblocks` and
|
||||
:meth:`os.AbstractBlockDev.writeblocks` methods) is::
|
||||
:meth:`vfs.AbstractBlockDev.readblocks` and
|
||||
:meth:`vfs.AbstractBlockDev.writeblocks` methods) is::
|
||||
|
||||
class RAMBlockDev:
|
||||
def __init__(self, block_size, num_blocks):
|
||||
@@ -148,7 +148,7 @@ interface (i.e. both signatures and behaviours of the
|
||||
return 0
|
||||
|
||||
As it supports the extended interface, it can be used with :class:`littlefs
|
||||
<os.VfsLfs2>`::
|
||||
<vfs.VfsLfs2>`::
|
||||
|
||||
import os
|
||||
|
||||
@@ -166,8 +166,8 @@ normally would be used from Python code, for example::
|
||||
Filesystems
|
||||
-----------
|
||||
|
||||
MicroPython ports can provide implementations of :class:`FAT <os.VfsFat>`,
|
||||
:class:`littlefs v1 <os.VfsLfs1>` and :class:`littlefs v2 <os.VfsLfs2>`.
|
||||
MicroPython ports can provide implementations of :class:`FAT <vfs.VfsFat>`,
|
||||
:class:`littlefs v1 <vfs.VfsLfs1>` and :class:`littlefs v2 <vfs.VfsLfs2>`.
|
||||
|
||||
The following table shows which filesystems are included in the firmware by
|
||||
default for given port/board combinations, however they can be optionally
|
||||
|
||||
Reference in New Issue
Block a user