core3-utils

@wixc3/fs-utils on Github

Home > @wixc3/fs-utils > isSubPath

isSubPath() function

Checks if a path is equal to or subpath of a given base path.

Signature:

export declare function isSubPath(path: string, basePath: string, fs: IFileSystem): boolean;

Parameters

Parameter Type Description
path string
basePath string
fs IFileSystem

Returns:

boolean