add target  parameter in transform function.In order to support copy file by symbolic link.