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
True if the path exists, false otherwise.