Method ExistsAsync
ExistsAsync(string, CancellationToken)
Existence test that answers the same question on every platform.
A local path is answered from the file system. A StreamingAssets path on a packed platform is probed over HTTP instead, because a URL is not a directory and Exists(string)/Exists(string) silently return false there - which is how "platform fork" bugs hide (content that loads fine in the editor and loads zero files in a browser without a single error).
public static Task<bool> ExistsAsync(string path, CancellationToken ct = default)
Parameters
pathstringctCancellationToken