Skip to main content
The Deno 2 Release Candidate is here
Learn more
interface fs.ExistsOptions
import { type fs } from "https://deno.land/x/assert_fs@v0.1.0/deps.ts";
const { ExistsOptions } = fs;

Options for exists and existsSync.

Properties

optional
isReadable: boolean = false

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

optional
isDirectory: boolean = false

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

optional
isFile: boolean = false

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