It is a child's version of the Child ballad, but very like the Dublin street song Frank Harte collected. The Lyrics.com website entry for Pete Seeger's recording credits the lyrics to Traditional/Jim Gould © The Bicycle Company, but I can't find anything else attributed to Jim Gould anywhere.