Skip to main content

@std/fs@0.215.0

latest
Works with
It is unknown whether this package works with Browsers, Deno, Node.js, Cloudflare Workers, Bun
It is unknown whether this package works with Browsers
It is unknown whether this package works with Deno
It is unknown whether this package works with Node.js
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Bun
JSR Score70%
Published2 years ago (0.215.0)

Functions

f
exists(
path: string | URL,
options?: ExistsOptions
): Promise<boolean>

Test whether or not the given path exists by checking with the file system. Please consider to check if the path is readable and either a file or a directory by providing additional options:

f
existsSync(
path: string | URL,
options?: ExistsOptions
): boolean

Test whether or not the given path exists by checking with the file system. Please consider to check if the path is readable and either a file or a directory by providing additional options:

Interfaces

I

Options for exists and existsSync.

  • isDirectory: boolean

    When true, will check if the path is a directory as well. Directory symlinks are included.

  • isFile: boolean

    When true, will check if the path is a file as well. File symlinks are included.

  • isReadable: boolean

    When true, will check if the path is readable by the user as well.

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@std/fs

Import symbol

import * as mod from "@std/fs/exists";
or

Import directly with a jsr specifier

import * as mod from "jsr:@std/fs/exists";