Skip to main content
Module

std/fs/_util.ts>isSubdir

Deno standard library
Go to Latest
function isSubdir
import { isSubdir } from "https://deno.land/std@0.81.0/fs/_util.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