implemented file and directory events for tree walker