Disable dotfiles on boards without native usb

This commit is contained in:
Bill Sideris 2023-08-29 17:23:17 +03:00
parent 3605d891de
commit f204b17164
No known key found for this signature in database
GPG Key ID: 1BEF1BCEBA58EA33
1 changed files with 2 additions and 1 deletions

View File

@ -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");