Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexagon committed Mar 30, 2024
1 parent 7074636 commit a3ff1a1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
bun_ci:
uses: cross-org/workflows/.github/workflows/bun-ci.yml@main
with:
jsr_dependencies: "@cross/test @std/assert @cross/runtime @std/path @cross/dir @cross/utils"
jsr_dependencies: "@cross/test @std/assert @cross/runtime @std/path @cross/dir @cross/utils @cross/env"
node_ci:
uses: cross-org/workflows/.github/workflows/node-ci.yml@main
with:
jsr_dependencies: "@cross/test @std/assert @cross/runtime @std/path @cross/dir @cross/utils"
jsr_dependencies: "@cross/test @std/assert @cross/runtime @std/path @cross/dir @cross/utils @cross/env"
test_target: "src/**/*.test.ts"
7 changes: 7 additions & 0 deletions src/stat/exists.ts
Original file line number Diff line number Diff line change
@@ -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<boolean> {
try {
await stat(path);
Expand Down

0 comments on commit a3ff1a1

Please sign in to comment.