• Checks if a path is within a specified directory

    Parameters

    • childPath: string

      Path to check

    • parentDir: string

      Parent directory

    Returns boolean

    True if childPath is within parentDir