Bug: folder tree not work properly, and sometimes opus crash

For the crash, please see if any of these are relevant:

[ul][li]Crash, exit or high CPU usage when viewing certain directories[/li]
[li]Crash, exit or high CPU usage when right-clicking certain files[/li]
[li]Crash dumps for bug reports[/li][/ul]