Skip to content

Method ListFiles

Namespace: Belay.Core
Assembly: Belay.Core.dll

ListFiles(string, CancellationToken)

Lists files in a directory on the device.

csharp
public Task<string[]> ListFiles(string devicePath = "/", CancellationToken cancellationToken = default)

Parameters

devicePath string

The directory path on the device. Defaults to root "/".

cancellationToken CancellationToken

Cancellation token for the operation.

Returns

Task<string[]>

Array of file names in the directory.

Released under the Apache License 2.0.