Skip to main content

Path.combine()

The Path.combine() method combines this path with one or more other paths into a single Path instance.

Any gaps in the path (caused by move operations) will be left as-is, rather than joined with a line. If that's not what you want, you should use Path.join() instead.

Signature

Path path.combine(path other)

Examples

Example of the Path.combine() method

Notes

Path.combine() method is variadic, so you can pass multiple paths to join