Join two or more sections of file path together, inserting a delimiter if needed.
Rest
Sections of the path to join.
The joined file path.
const path = pc.path.join('foo', 'bar');console.log(path); // Prints 'foo/bar' Copy
const path = pc.path.join('foo', 'bar');console.log(path); // Prints 'foo/bar'
const path = pc.path.join('alpha', 'beta', 'gamma');console.log(path); // Prints 'alpha/beta/gamma' Copy
const path = pc.path.join('alpha', 'beta', 'gamma');console.log(path); // Prints 'alpha/beta/gamma'
Join two or more sections of file path together, inserting a delimiter if needed.