test1.maya // directory test2.maya // file without extension Results: 1 sequence of folders (and test2.maya is a folder). Expected: 1 folder and 1 file. Solution: discover sequences based on pattern AND type.