Comment and reorder the files creation.

This commit is contained in:
Bill Sideris 2023-08-28 17:03:32 +03:00
parent 57ac916ccd
commit 029c912bf0
No known key found for this signature in database
GPG Key ID: 1BEF1BCEBA58EA33

View File

@ -127,10 +127,15 @@ bool filesystem_init(bool create_allowed, bool force_create) {
if (res != FR_OK) {
return false;
}
make_empty_file(&vfs_fat->fatfs, "/.metadata_never_index");
make_empty_file(&vfs_fat->fatfs, "/.Trashes");
make_empty_file(&vfs_fat->fatfs, "/.Trash-1000");
make_empty_file(&vfs_fat->fatfs, "/.fseventsd/no_log");
make_empty_file(&vfs_fat->fatfs, "/.metadata_never_index");
// Prevent storing trash on all OSes.
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
#if CIRCUITPY_OS_GETENV
make_empty_file(&vfs_fat->fatfs, "/settings.toml");
#endif