Adam Lally wrote:
Seems fine. Just to clarify - the PEAR file is always installed into
a directory whose name is the PEAR's ID, and it's that directory which
you will remove? So there's not a risk of the user accidentally
deleting other files?
By default, and when using the PEAR installer GUI the PEAR file is
always installed to a subdirectory whose name is the PEAR ID. And this
subdirectory will be deleted.
When using the PEAR API directly in Java the user can change this
parameter if he don't want to install the PEAR files to the PEAR ID
subdirectory.
In that case, there is a risk that users maybe delete some files he
wouldn't like. But in the past I created beyond the PEAR installer API
and easier API to install PEAR packages that is also mentioned in the
documentation (PackageInstaller). When using this API the user cannot
change the parameter to install the PEAR package to a root directory. So
the root directory is an advanced option in the underlying PEAR API. So
from my point of view, the risk that anybody accidentally delete files
is very low.
I will also add some comments to the JavaDoc that the user should be
careful with changing the "installInRootDir" parameter...
-- Michael