Copies all the bytes from the file at source to the file at target. This does not copy file metadata like last modified time, permissions, or extended attributes.
Creates a sink to write file, executes writerAction to write it, and then closes the sink. This is a compact way to write a file.