diff --git a/src/stat/exists.ts b/src/stat/exists.ts index 49c56ec..3538bd7 100644 --- a/src/stat/exists.ts +++ b/src/stat/exists.ts @@ -1,4 +1,11 @@ import { NotFoundError, stat } from "./mod.ts"; + +/** + * Checks if a file or directory exists at the specified path. + * + * @param path - The path to the file or directory. + * @returns True if the file or directory exists, otherwise false. + */ export async function exists(path: string): Promise { try { await stat(path);