File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -127,9 +127,15 @@ bool filesystem_init(bool create_allowed, bool force_create) {
127
127
if (res != FR_OK ) {
128
128
return false;
129
129
}
130
- make_empty_file (& vfs_fat -> fatfs , "/.metadata_never_index" );
131
- make_empty_file (& vfs_fat -> fatfs , "/.Trashes" );
132
130
make_empty_file (& vfs_fat -> fatfs , "/.fseventsd/no_log" );
131
+ make_empty_file (& vfs_fat -> fatfs , "/.metadata_never_index" );
132
+
133
+ // Prevent storing trash on all OSes.
134
+ make_empty_file (& vfs_fat -> fatfs , "/.Trashes" ); // MacOS
135
+ make_empty_file (& vfs_fat -> fatfs , "/.Trash-1000" ); // Linux, XDG trash spec:
136
+ // https://specifications.freedesktop.org/trash-spec/trashspec-latest.html
137
+
138
+
133
139
#if CIRCUITPY_OS_GETENV
134
140
make_empty_file (& vfs_fat -> fatfs , "/settings.toml" );
135
141
#endif
You can’t perform that action at this time.
0 commit comments