We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8741b57 commit dd3a665Copy full SHA for dd3a665
examples/camera/boot.py
@@ -0,0 +1,17 @@
1
+# SPDX-FileCopyrightText: 2023 Jeff Epler for Adafruit Industries
2
+#
3
+# SPDX-License-Identifier: Unlicense
4
+
5
+"""Automatically create the /sd mount point at boot time"""
6
7
+import os
8
+import storage
9
10
+storage.remount("/", readonly=False)
11
12
+try:
13
+ os.mkdir("/sd")
14
+except OSError:
15
+ pass # It's probably 'file exists', OK to ignore
16
17
+storage.remount("/", readonly=True)
0 commit comments