Skip to content

Method ExistsAsync

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

ExistsAsync(string, CancellationToken)

Checks whether a file or directory exists on the device.

csharp
public Task<bool> ExistsAsync(string path, CancellationToken cancellationToken = default)

Parameters

path string

The path to check.

cancellationToken CancellationToken

Cancellation token to cancel the operation.

Returns

Task<bool>

True if the path exists, false otherwise.

Released under the Apache License 2.0.