Pass a cursor rather than the path.