path.join('/foo', 'bar', 'baz/asdf', 'quux', '..');
// Returns: '/foo/bar/baz/asdf'
path.join('foo', {}, 'bar');
// Throws 'TypeError: Path must be a string. Received {}'
path.resolve('../gif/image.gif');
// this returns '/home/myself/node/wwwroot/static_files/gif/image.gif'
//and more in https://nodejs.org/api/path.html