Home > @wixc3/fs-utils > isSubPath
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;
Parameter | Type | Description |
---|---|---|
path | string | |
basePath | string | |
fs | IFileSystem |
Returns:
boolean