Skip to content

Commit 96ef9c0

Browse files
committed
don't create placeholder.txt if it'll just be empty
1 parent 7c3adbf commit 96ef9c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

supervisor/shared/filesystem.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,11 @@ bool filesystem_init(bool create_allowed, bool force_create) {
143143

144144
#if CIRCUITPY_SDCARDIO || CIRCUITPY_SDIOIO
145145
res = f_mkdir(&vfs_fat->fatfs, "/sd");
146+
#if CIRCUITPY_FULL_BUILD
146147
MAKE_FILE_WITH_OPTIONAL_CONTENTS(&vfs_fat->fatfs, "/sd/placeholder.txt",
147148
"This placeholder file allows mounting an SD card at /sd\n");
148149
#endif
150+
#endif
149151

150152
#if CIRCUITPY_OS_GETENV
151153
make_empty_file(&vfs_fat->fatfs, "/settings.toml");

0 commit comments

Comments
 (0)