diff options
| author | Jeff Epler <jepler@gmail.com> | 2018-03-27 21:28:19 -0500 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2018-03-27 21:28:19 -0500 |
| commit | 34f5498760452e30cb9b76e43f5ec65f36936376 (patch) | |
| tree | e4457f190841f25ab8954a057dcd8ce3ff8b4d10 /shared-bindings/storage | |
| parent | 9c47fd9c13b4d5a35d28c4c9eca8f1644cb882da (diff) | |
Document storage.VfsFat more thoroughly
Diffstat (limited to 'shared-bindings/storage')
| -rw-r--r-- | shared-bindings/storage/__init__.c | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/shared-bindings/storage/__init__.c b/shared-bindings/storage/__init__.c index 837017ef9..734cabcc1 100644 --- a/shared-bindings/storage/__init__.c +++ b/shared-bindings/storage/__init__.c @@ -145,6 +145,49 @@ STATIC const mp_rom_map_elem_t storage_module_globals_table[] = { //| //| :param block_device: Block device the the filesystem lives on //| + //| .. attribute:: label + //| + //| The filesystem label, up to 11 case-insensitive bytes. Note that + //| this property can only be set when the device is writable by the + //| microcontroller. + //| + //| .. method:: mkfs + //| + //| Format the block device, deleting any data that may have been there + //| + //| .. method:: open(path, mode) + //| + //| Like builtin ``open()`` + //| + //| .. method:: ilistdir([path]) + //| + //| Return an iterator whose values describe files and folders within + //| ``path`` + //| + //| .. method:: mkdir(path) + //| + //| Like `os.mkdir` + //| + //| .. method:: rmdir(path) + //| + //| Like `os.rmdir` + //| + //| .. method:: stat(path) + //| + //| Like `os.stat` + //| + //| .. method:: statvfs(path) + //| + //| Like `os.statvfs` + //| + //| .. method:: mount(readonly, mkfs) + //| + //| Don't call this directly, call `storage.mount`. + //| + //| .. method:: umount + //| + //| Don't call this directly, call `storage.umount`. + //| { MP_ROM_QSTR(MP_QSTR_VfsFat), MP_ROM_PTR(&mp_fat_vfs_type) }, }; |
