I am using the fs-extra module to extend the native fs. When using fs.copy() to copy files from one location to another, one mp4 file particularly will not copy the entire file. all other files copy successfully. if i check the file properties the new copied file size is about half of the original file. but the file size changes each time i do it. it is the largest file being copied at about 30MB. So it seems like the file copy is being cut short for some reason. is there a size limitation? There are no error messages. Just an incomplete file is created on the other side.
can anyone help me with this? it is driving me nuts.
here is the actual line of code:
fs.copy("./content/file.mp4",./../Player/content/file.pm4).then(console.log("File copied successfully")).catch(err => { console.log(err)});
Original fileize: 31.3MB New filesize: 18.7MB (or how ever much actually copied. )