Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/std/fs/utils.ts>isSubdir

A modern runtime for JavaScript and TypeScript.
Go to Latest
function isSubdir
import { isSubdir } from "https://deno.land/x/deno@v0.28.0/std/fs/utils.ts";

Test whether or not dest is a sub-directory of src

Parameters

src: string

src file path

dest: string

dest file path

optional
sep: string = [UNSUPPORTED]

path separator

Returns

boolean