- 🇺🇸United States smustgrave
#7 had some CI failures
Also at this time we will need a D10 version
Tagging for tests also.
PHP addFile function in zipArchive takes the second argument
'entryname' and use it to name file in the archive instead of file path. Drupal core/lib/Drupal/Core/Archiver/Zip.php add functionon on the other hand takes only one argument filepath and therefore use it to name files in archive.
Use drupal plugin.manager.archiver and add function to create the zip archive. When you open the archive you will file path used to name the file inside the archive.
e.g /var/www/html/web/sites/default/files/yourfilename
Pass the second optional argument 'entryname' to override the filename in the archive https://www.php.net/manual/en/ziparchive.addfile.php
Testing
Needs work
10.1 ✨
Last updated
The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
#7 had some CI failures
Also at this time we will need a D10 version
Tagging for tests also.