I’m not sure if this is a fixable bug or a limitation when trashing files from external drives, but I’ve noticed that when I use File::moveToTrash() on a file that is not located on my internal drive, it does not appear in my trash. If I try the exact same file from anywhere on my system drive it works as expected. Is there any way to fix this?
I’m experiencing a similar issue, except that I’m attempting to move a file onto an external drive. I’ve documented the failures in this post here. However, my problem is specifically for directories. If that’s the same for you, my workaround would be to copy the directory to the trash folder, then delete it at its original location. If individual files aren’t moving I’m not sure what can be done.
I cannot repro the failure to move files to the trash from external drives. I’m using a FAT32 usb drive for testing on Sonoma 14.3. @aguy-PG Please share more about how to reproduce this issue, OS version, whether it happens when deleting files or folders etc.
Thanks for the response Attila! I just tested again on my machine running MacOS Catalina (10.15.7) and it is still broken in JUCE 6. I tried deleting a text file from an external drive formatted to Mac OS Extended (Journaled), and another one that is FAT32. In both cases the file is deleted but does not appear in the Trash. Then I tested the same operation on a text file located on my Desktop and it is successfully moved to the Trash.