Skip to content

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 ​

Task<byte[]>

The file contents as a byte array.

Released under the Apache License 2.0.