has_prefix

omni.fabric.commands.scripts.utils.has_prefix(path: Path, prefix: Path)

Checks if the given Fabric path has the specified prefix.

Parameters
  • path (usdrt.Sdf.Path) – The Fabric path to check for the prefix.

  • prefix (usdrt.Sdf.Path) – The prefix path to check against the given path.

Returns

True if the path has the specified prefix, False otherwise.

Return type

bool