Skip to content

Commit

Permalink
Merge pull request #8346 from bill88t/no_dotfiles_on_nonusb
Browse files Browse the repository at this point in the history
Disable dotfiles on boards without native usb
  • Loading branch information
tannewt authored Aug 29, 2023
2 parents b81c0e2 + f204b17 commit 60a0a3d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion supervisor/shared/filesystem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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");
Expand Down

0 comments on commit 60a0a3d

Please sign in to comment.