Method GetFileAsync
Namespace: Belay.Core
Assembly: Belay.Core.dll
GetFileAsync(string, CancellationToken)
Retrieve a file from the device to the local system.
csharp
public Task<byte[]> GetFileAsync(string remotePath, CancellationToken cancellationToken = default)
Parameters
remotePath
string
Path to the file on the device.
cancellationToken
CancellationToken
Cancellation token.
Returns
The file contents as a byte array.