@php-wasm/utilFunctionsjoinPathsjoinPaths CallablejoinPaths(...paths: string[]): stringJoins paths together. For example: joinPaths(‘wordpress’, ‘wp-content’) ‘wordpress/wp-content’Use this for all PHP paths and do not use path.join(). This is important because Emscripten paths are always POSIX-style paths. Imagine joining paths on Windows: path.join(‘wordpress’, ‘wp-content’) ‘\wordpress\wp-content’ // invalid in PHP.wasmSee the path.join issue for more details: https://github.com/WordPress/playground-tools/issues/11#issuecomment-1579074763Parametersrest...paths: string[]Paths segments to joinReturns stringA joined path
Joins paths together.
For example:
Use this for all PHP paths and do not use path.join(). This is important because Emscripten paths are always POSIX-style paths. Imagine joining paths on Windows:
See the path.join issue for more details:
https://github.com/WordPress/playground-tools/issues/11#issuecomment-1579074763