docs/reference/filesystem: Add note and example about using filesystem.

pull/5403/head
Damien George 2019-12-09 14:21:22 +11:00
rodzic 50dc5f10a6
commit 381be9a745
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -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
-----------