From f204b1716450eb6ffce68f9f5891706e1d332a23 Mon Sep 17 00:00:00 2001 From: Bill Sideris Date: Tue, 29 Aug 2023 17:23:17 +0300 Subject: [PATCH] Disable dotfiles on boards without native usb --- supervisor/shared/filesystem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/supervisor/shared/filesystem.c b/supervisor/shared/filesystem.c index f6ade7cbba..2eff0b47aa 100644 --- a/supervisor/shared/filesystem.c +++ b/supervisor/shared/filesystem.c @@ -122,6 +122,7 @@ bool filesystem_init(bool create_allowed, bool force_create) { return false; } + #if CIRCUITPY_USB // inhibit file indexing on MacOS res = f_mkdir(&vfs_fat->fatfs, "/.fseventsd"); if (res != FR_OK) { @@ -134,7 +135,7 @@ bool filesystem_init(bool create_allowed, bool force_create) { make_empty_file(&vfs_fat->fatfs, "/.Trashes"); // MacOS make_empty_file(&vfs_fat->fatfs, "/.Trash-1000"); // Linux, XDG trash spec: // https://specifications.freedesktop.org/trash-spec/trashspec-latest.html - + #endif #if CIRCUITPY_OS_GETENV make_empty_file(&vfs_fat->fatfs, "/settings.toml");