Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/kd_clients/GitHubClients/mod.ts>RepoClient#fileExists

Various HTTP clients for miscellaneous use.
Go to Latest
method RepoClient.prototype.fileExists
import { RepoClient } from "https://deno.land/x/kd_clients@v1.0.0-preview.12/GitHubClients/mod.ts";

Gets a value indicating whether or not a file exists at the given relativeFilePath in a repository with a name that matches the given RepoClient.repoName.

Parameters

branchName: string

The name of the branch to check.

relativeFilePath: string

The relative path of the file.

Returns

Promise<boolean>

True if the file exists; otherwise, false.