move the check logic of a resource belongs to a filtered sidrectory into a separate method
update readme to include coverage with directory filters usage