@jupyterlab/filebrowser
Version:
JupyterLab - FileBrowser Widget
9 lines (8 loc) • 305 B
TypeScript
/**
* Check if a path is within the navigation root.
*
* @param path - The path to check.
* @param root - The navigation root; an empty root allows every path.
* @returns Whether the path is within the root boundary.
*/
export declare function isPathWithinRoot(path: string, root: string): boolean;