Skip to main content

Function: isPathWithinDirectory()

isPathWithinDirectory(value: string, directory: string, platform: Platform): boolean

Defined in: electron/services/window/utils/pathGuards.ts:25

Checks if a path is within a directory (inclusive) after normalization.

Parameters

value

string

directory

string

platform

Platform = process.platform

Returns

boolean