Files are deleted immediately and can't be found on Trash folder - after Mojave update
When I delete a file, a warning window shows up "This item will be deleted immediately. You can’t undo this action." it comes with Cancel and Delete buttons. If I select Delete, the file will be gone, and cannot be found on Trash folder.
The system seem to delete the file immediately and permanently. The file cannot be moved to Trash folder and be put back when I regret the deletion. This happened since the upgrade to Mojave, and reinstalling completely from scratch Mojave with no restore of Time Machine did no fix this issue.
Upon documenting myself and digging into the system, it seems like:
1) MacOs Mojave keeps replacing the .Trash folder (permission 755) in my home directory with an empty file called .Trash which is not a directory.
2) Deleting this flat .Trash file and dragging a new item in the Trash, temporarily resolve the issue, I can see the correct directory gets created again, but then after 5 to 7 days the problem randomly resurfaces
3) Recreating the trash directory while rebooting without system integrity doesn't help either. The problem keep resurfacing.
Temporary Solution until this annoying MacOs Mojave bug is fixed: keep always an item into your trash. If you don't like to see it full, create a .hidden empty text file in the folder. Unfortunately even with immutable bit sets, the file gets deleted once you empty the trash again, so it's not a very good solution.
If you can suggest a better and permanent fix let me know.
I have researched for possible interactions (google drive sync, time machine) to no avail.
MacBook, macOS 10.14