aplteam / Tatin

Tatin is a package manager for Dyalog APL
MIT License
25 stars 6 forks source link

uninstallpackage deleted much too much #145

Closed kdtp closed 1 year ago

kdtp commented 1 year ago

I am sure, I did wrong somewhere. But nevertheless I like to let you, that uninstallpackage can easily delete your whole user profile/home.

I installed like ]Tatin.InstallPackage httpcommand sucessfully but in the wrong folder namely my /Users/xxxxx on my Mac.

than I gave a try to ]Tatin.UnInstallPackage httpcommand

resulting in my home folder emptied (besides those files where permissions are lacking).

So just two commands can let to disaster.

aplteam commented 1 year ago

Fixed in 0.100.2

Now it checks whether the installation folder is empty apart from Tatin's own two files apl-buildlist.json and apl-dependencies.txt. Only if that's the case the folder is removed.