From d908e8bfa4c051b9f2ee078832a232b42d64b02e Mon Sep 17 00:00:00 2001 From: Hexagon Date: Sat, 30 Mar 2024 01:29:22 +0100 Subject: [PATCH] docs --- src/stat/exists.ts | 7 +++++++ 1 file changed, 7 insertions(+) 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);