Method WriteFileAsync
Namespace: Belay.Sync
Assembly: Belay.Sync.dll
WriteFileAsync(string, byte[], CancellationToken)
Writes data to a file on the device, creating it if necessary.
csharp
Task WriteFileAsync(string path, byte[] content, CancellationToken cancellationToken = default)
Parameters
path
string
The file path to write to.
content
byte[]
The content to write.
cancellationToken
CancellationToken
Cancellation token to cancel the operation.
Returns
Exceptions
Thrown when access is denied.
Thrown when an I/O error occurs.