Page MenuHome

Fix T61412: Blender file explorer hard deletes data

Authored by Kris (Metricity) on Mar 22 2019, 11:23 PM.



Patch for T61412 to send files to the recycle bin when deleted from the file browser.

I added a separate BLI_delete_recycle function instead of a new parameter to BLI_delete as that function is used in many places.

Tested on Windows 10, I haven't tested other platforms but added a stub that calls the original method.

I couldn't find a way to delete a folder in the file browser so that case isn't handled in this patch, there may also be a better way to make the double null terminated string used by SHFileOperation.

Diff Detail

rB Blender