Replies: 2 comments 32 replies
-
You can try that yourself by creating a temporary folder e.g. inside your Joomla's tmp folder, filling that folder with some subfolders and files, adding a |
Beta Was this translation helpful? Give feedback.
-
Apologies for not keeping my "later today" promise. I just tested a few variations, starting with the one you suggested last: <fileset>
<files folder="layouts/files_manifest_test" target="layouts/files_manifest_test">
<file>folder1/bar.php</file>
<file>folder2/baz.php</file>
<file>foo.php</file>
</files>
</fileset> This variation installs all files and folders properly. However, on uninstallation, it deletes all files and folders, except the top folder <fileset>
<files folder="layouts" target="layouts">
<folder>files_manifest_test</folder>
<file>files_manifest_test/folder1/bar.php</file>
<file>files_manifest_test/folder2/baz.php</file>
<file>files_manifest_test/foo.php</file>
</files>
</fileset> With this arrangement all files and folders are properly installed and deleted on uninstallation. |
Beta Was this translation helpful? Give feedback.
-
It seems that
Joomla\CMS\Installer\Adapter\FileAdapter
does not delete all files and folders that were installed. This piece of code, starting at line 292, is the culprit:Why aren't all folders deleted recursively? Is this simply a mistake or intentional behavior? And if intentional, what should an installer manifest look like, that installs several files and sub folders, containing files as well, in for instance
layouts\com_foo
?Beta Was this translation helpful? Give feedback.
All reactions