The file or file path to write to
The data to copy into destination
.
Persist a Response body to disk.
A promise that resolves with the number of bytes written.
The file to write to. If the file doesn't exist,
it will be created and if the file does exist, it will be
overwritten. If input
's size is less than destination
's size,
destination
will be truncated.
Response
object
Persist a Response body to disk.
A promise that resolves with the number of bytes written.
The file path to write to. If the file doesn't
exist, it will be created and if the file does exist, it will be
overwritten. If input
's size is less than destination
's size,
destination
will be truncated.
Response
object
Use the fastest syscalls available to copy from input
into destination
.
If destination
exists, it must be a regular file or symlink to a file.
On Linux, this uses copy_file_range
.
On macOS, when the destination doesn't already exist, this uses
clonefile()
and falls
back to fcopyfile()
A promise that resolves with the number of bytes written.
Use the fastest syscalls available to copy from input
into destination
.
If destination
exists, it must be a regular file or symlink to a file.
On Linux, this uses copy_file_range
.
On macOS, when the destination doesn't already exist, this uses
clonefile()
and falls
back to fcopyfile()
A promise that resolves with the number of bytes written.
The file path to write to. If the file doesn't
exist, it will be created and if the file does exist, it will be
overwritten. If input
's size is less than destination
's size,
destination
will be truncated.
The file to copy from.
Use the fastest syscalls available to copy from input
into destination
.
If destination
exists, it must be a regular file or symlink to a file.
A promise that resolves with the number of bytes written.
The file or file path to write to
The data to copy into destination
.
Persist a Response body to disk.
A promise that resolves with the number of bytes written.
The file to write to. If the file doesn't exist,
it will be created and if the file does exist, it will be
overwritten. If input
's size is less than destination
's size,
destination
will be truncated.
Response
object
Persist a Response body to disk.
A promise that resolves with the number of bytes written.
The file path to write to. If the file doesn't
exist, it will be created and if the file does exist, it will be
overwritten. If input
's size is less than destination
's size,
destination
will be truncated.
Response
object
Use the fastest syscalls available to copy from input
into destination
.
If destination
exists, it must be a regular file or symlink to a file.
On Linux, this uses copy_file_range
.
On macOS, when the destination doesn't already exist, this uses
clonefile()
and falls
back to fcopyfile()
A promise that resolves with the number of bytes written.
Use the fastest syscalls available to copy from input
into destination
.
If destination
exists, it must be a regular file or symlink to a file.
On Linux, this uses copy_file_range
.
On macOS, when the destination doesn't already exist, this uses
clonefile()
and falls
back to fcopyfile()
A promise that resolves with the number of bytes written.
The file path to write to. If the file doesn't
exist, it will be created and if the file does exist, it will be
overwritten. If input
's size is less than destination
's size,
destination
will be truncated.
The file to copy from.
Generated using TypeDoc
Use the fastest syscalls available to copy from
input
intodestination
.If
destination
exists, it must be a regular file or symlink to a file.Returns
A promise that resolves with the number of bytes written.