Commit fe7f405
committed
Add VfsFat.label property
These allow accessing the filesystem label. For instance,
in boot.py, you can set the label on the built-in storage with:
storage.remount('/', False)
storage.getmount('/').label = "NEWLABEL"
storage.remount('/', True)
Users with multiple CIRCUITPY boards may find it desirable to
choose a different label for each board they own.1 parent c08f5a3 commit fe7f405Copy full SHA for fe7f405
4 files changed
+38Lines changed: 38 additions & 0 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- extmod
- ports/unix
- tests/extmod
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+34Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
33 | 33 | |
34 | 34 | |
35 | 35 | |
| 36 | + |
36 | 37 | |
37 | 38 | |
38 | 39 | |
| ||
317 | 318 | |
318 | 319 | |
319 | 320 | |
| 321 | + |
| 322 | + |
| 323 | + |
| 324 | + |
| 325 | + |
| 326 | + |
| 327 | + |
| 328 | + |
| 329 | + |
| 330 | + |
| 331 | + |
| 332 | + |
| 333 | + |
| 334 | + |
| 335 | + |
| 336 | + |
| 337 | + |
| 338 | + |
| 339 | + |
| 340 | + |
| 341 | + |
| 342 | + |
| 343 | + |
| 344 | + |
| 345 | + |
| 346 | + |
| 347 | + |
| 348 | + |
| 349 | + |
| 350 | + |
320 | 351 | |
321 | 352 | |
322 | 353 | |
| ||
331 | 362 | |
332 | 363 | |
333 | 364 | |
| 365 | + |
| 366 | + |
| 367 | + |
334 | 368 | |
335 | 369 | |
336 | 370 | |
|
Collapse file
ports/unix/mpconfigport_coverage.h
Copy file name to clipboardExpand all lines: ports/unix/mpconfigport_coverage.h+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
43 | 43 | |
44 | 44 | |
45 | 45 | |
| 46 | + |
46 | 47 | |
Collapse file
tests/extmod/vfs_fat_ramdisk.py
Copy file name to clipboardExpand all lines: tests/extmod/vfs_fat_ramdisk.py+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
54 | 54 | |
55 | 55 | |
56 | 56 | |
| 57 | + |
| 58 | + |
57 | 59 | |
58 | 60 | |
59 | 61 | |
|
Collapse file
tests/extmod/vfs_fat_ramdisk.py.exp
Copy file name to clipboardExpand all lines: tests/extmod/vfs_fat_ramdisk.py.exp+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
| 3 | + |
3 | 4 | |
4 | 5 | |
5 | 6 | |
|
0 commit comments