Implement assertion.

Can check files, dirs and entries within subdirs.
Needs a bit of refactoring.