Added code to output $pubdir/list