Implement filtering by path (#6)