meson/docs/markdown/snippets/pathdivision.md

280 B

Joining paths with /

Joining two paths has traditionally been done with the join_paths function.

joined = join_paths('foo', 'bar')

Now you can use the simpler notation using the / operator.

joined = 'foo' / 'bar'

This only works for strings.