GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • ADK for TypeScript: API Reference

This view

  • Original page
  • New address

GeezerVison is showing adk.dev — validatePathSegment | ADK for TypeScript: API Reference - v2.5.0

  • validatePathSegment

Function validatePathSegment

  • validatePathSegment(value: string, fieldName: string): void

    Validates that a caller-supplied identifier is a safe single path segment and cannot traverse directories.

    This is a lexical check on the string only. It does not resolve symlinks and is not a sandbox.

    Parameters

    • value: string

      The caller-supplied identifier. Non-string values are rejected.

    • fieldName: string

      Human-readable field name used in error messages.

    Returns void

    Throws

    If value is not a non-empty string, or if it contains a null byte, a path separator, a drive prefix, or is . or ...

    • Defined in core/src/cli/utils/path_validation.ts:25
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.