Man guilty of indecent exposure at Harrogate library