copydata function

Copy package data to the directory specified.