Skip to main content

BlueprintRelativePath

Namespace: Meshmakers.Octo.ConstructionKit.Contracts.BlueprintCatalogs

Helpers for working with the relative-path arguments passed to IBlueprintCatalog.OpenBlueprintFileAsync(BlueprintId, String, Object, CancellationToken). Centralised here so every catalog implementation enforces the same path-safety rules (no .., no rooted paths, normalised to forward slashes).

public static class BlueprintRelativePath

Inheritance Object → BlueprintRelativePath

Methods​

Validate(String)​

Validates that relativePath stays inside the blueprint root and returns the normalised forward-slash form. Throws BlueprintCatalogException on any traversal / rooted / empty path.

public static string Validate(string relativePath)

Parameters​

relativePath String
The candidate relative path

Returns​

String
The normalised path (forward slashes, no leading separators).