Skip to content

Method GetFileInfoAsync

Namespace: Belay.Sync
Assembly: Belay.Sync.dll

GetFileInfoAsync(string, CancellationToken)

Gets information about a specific file or directory on the device.

csharp
public Task<DeviceFileInfo?> GetFileInfoAsync(string path, CancellationToken cancellationToken = default)

Parameters

path string

The path to examine.

cancellationToken CancellationToken

Cancellation token to cancel the operation.

Returns

Task<DeviceFileInfo?>

File information, or null if the path does not exist.

Released under the Apache License 2.0.