It was pointed out that transformFrom is not guaranteed to transfer all bytes so you can't ignore the return value.
We should replace move/all of this with a Files.copy that specifies REPLACE_EXISTING and COPY_ATTRIBUTES.
We should replace move/all of this with a Files.copy that specifies REPLACE_EXISTING and COPY_ATTRIBUTES.