Is it possible to keep folders in view, no matter what filter I use on metadata filter in a document library?
You can try to set view filter to show items with filter setting
Content Type equal to
Folder at the end of your filter like this:
.... (any other your filter settings).... OR Content Type equals Folder