PHP: mount() should not create a directory when mounting a file #503
Labels
[Feature] PHP.wasm
Good First Issue
Good for newcomers
[Type] Bug
An existing feature does not function as intended
The
mount()
method callsmkdirTree()
internally to ensure the target path exists – otherwise Emscripten throws an error. The problem is, sometimes we want to mount a file and not a directory. In these cases, themount()
method will still create that empty dir:wordpress-playground/packages/php-wasm/node/src/lib/node-php.ts
Lines 129 to 132 in 413d07f
Let's:
!this.isDir(localPath)
The text was updated successfully, but these errors were encountered: