implemented microSD mount/unmount functions

This commit is contained in:
Luxferre
2025-12-22 23:54:41 +02:00
parent 7c6a4823df
commit ebbf0fbbe6
3 changed files with 28 additions and 3 deletions
+2
View File
@@ -77,6 +77,8 @@ Exports the following functions:
- `lock_rootfs()`: make the device root filesystem read-only (does nothing on desktop)
- `stat(path)` (aka `du(path)`): alias to `os.stat` but returning the stats as a dictionary
- `statvfs(path)` (aka `df(path)`): alias to `os.statvfs` but returning the stats as a dictionary
- `mount_sd(path='/sd', readonly=False)`: mount the inserted microSD card (T-Deck only, must be FAT32)
- `umount_sd(path='/sd')`: unmount the inserted microSD card (T-Deck only)
The following `deck.fs` functions are direct aliases to the corresponding `os` call counterparts: