Add copy function to HTCFile
issue