fhFileUtils not using Recycle Bin
Posted: 21 Dec 2021 09:37
When debugging plugins that create temporary files for interim data storage that are subsequently deleted, it would be useful to be able to "undo" the deletion.
I know that os.remove(...) does not use the Recycle Bin, as that is difficult to implement with a cross-platform library. However, fhFileUtils also seems to do an immediate permanent deletion. As this is a Windows-only library, would it be possible to send the file or folder being deleted to the Recycle Bin instead of immediately deleting it? That would bring plugins in line with the core FH application.
I know that os.remove(...) does not use the Recycle Bin, as that is difficult to implement with a cross-platform library. However, fhFileUtils also seems to do an immediate permanent deletion. As this is a Windows-only library, would it be possible to send the file or folder being deleted to the Recycle Bin instead of immediately deleting it? That would bring plugins in line with the core FH application.