Disable dotfiles on boards without native usb
This commit is contained in:
parent
3605d891de
commit
f204b17164
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue