When using a path like --dir=~/<package-name> with wp scaffold package, I would expect WP-CLI to resolve this to actually create the folder /home/<user>/<package-name> or any similar platform-specific version of it.
However, WP-CLI actually creates the literal folder '~' and puts everything into that folder.
It should probably use something like realpath() before creating the folders.
When using a path like
--dir=~/<package-name>
withwp scaffold package
, I would expect WP-CLI to resolve this to actually create the folder/home/<user>/<package-name>
or any similar platform-specific version of it.However, WP-CLI actually creates the literal folder
'~'
and puts everything into that folder.It should probably use something like
realpath()
before creating the folders.