exclude folders in selection in editor mode

Hi, first post over here.
I would like to do this
Object[ ] gos = Selection.GetFiltered(typeof(Object), SelectionMode.SCENES);
or
Object[ ] gos = Selection.GetFiltered(typeof(Object), SelectionMode.NOTFOLDERS);

I´ve searching google for it but cant find something likie that.
Thanks guys

Neither of them should be required as the selection only includes assets and neither folders nor scenes are assets.
Also you already filter for Object, so only stuff extending from UnityEngine.Object will show up at all

mmm, but

        foreach (Object item in Selection.objects)
        {
            print("obj: " + item.name);
        }

also shows me the folders…
any ideas?

then you didn’t use the filtered array you got from a call like above.