Files successfully copied in the on end function