writeBytes method
Writes bytes to relativePath, creating parents as needed.
Throws if the source is read-only.
When executable is true the destination marks the file as executable
(POSIX execute bit); platforms without execute bits ignore it.
When onProgress is supplied it is invoked as the write streams, with the
number of bytes flushed so far and the total to write. For transports that
compress the payload, both figures are the compressed (wire) size, so a
caller can derive a faithful fraction without knowing the encoding.
Implementation
@override
Future<void> writeBytes(
String relativePath,
List<int> bytes, {
bool executable = false,
void Function(int sent, int total)? onProgress,
}) => _rpc.write(
relativePath,
bytes,
executable: executable,
onProgress: onProgress,
);