@backblaze-labs/b2-sdk - v0.2.0
    Preparing search index...

    Function normalizeB2RelativePath

    • Normalizes a B2 object name into a safe folder-relative sync path.

      Object names are converted to forward-slash sync paths for local compatibility. Callers that scan B2 must detect normalized-path collisions between distinct raw B2 keys before yielding entries.

      Parameters

      • path: string

        B2 object name or prefix-stripped suffix returned by a listing.

      • options: { stripLeadingSlashes?: boolean } = {}

        Optional normalization behavior for legacy slashless raw prefixes.

      Returns string

      Folder-relative sync path.

      When the object name cannot be represented as a safe relative path.