View condition simple search not working

When creating a new view and adding the condition of in folder “folder name” The view does not show only the contents of that folder.

Does anyone know how to work around this?