Add stream function to Path class.