common prefix

Basic data handling: PathCommonPrefix

Finds the common prefix of multiple paths. This node returns the longest common leading component of the given paths.

Pack: Basic data handling

custom_nodes.ComfyUI-basic_data_handling

Inputs (2)

NameTypeRequired
path1STRINGrequired
path2STRINGoptional

Outputs (1)

NameType
common prefixSTRING