summaryrefslogtreecommitdiff
path: root/docs/reference
diff options
context:
space:
mode:
Diffstat (limited to 'docs/reference')
-rw-r--r--docs/reference/filesystem.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/reference/filesystem.rst b/docs/reference/filesystem.rst
index 99e230531..32d013849 100644
--- a/docs/reference/filesystem.rst
+++ b/docs/reference/filesystem.rst
@@ -156,6 +156,13 @@ As it supports the extended interface, it can be used with :class:`littlefs
os.VfsLfs2.mkfs(bdev)
os.mount(bdev, '/ramdisk')
+Once mounted, the filesystem (regardless of its type) can be used as it
+normally would be used from Python code, for example::
+
+ with open('/ramdisk/hello.txt', 'w') as f:
+ f.write('Hello world')
+ print(open('/ramdisk/hello.txt').read())
+
Filesystems
-----------