Closed bondjimbond closed 6 years ago
I will release a bugfix for this soon.
The code has been changed to address this (as well as the namespace restrictions) in the latest commit -- 73f4fa5b589ae1f204b5a7fb0d3fdeb5d47ea63b. Please let me know if there is anything else.
Error continues:
Warning: rmdir(/tmp/datastream_io_datastreams_extract_144831_020131): Directory not empty in islandora_datastreams_io_dump_temp_dir() (line 45 of /var/www/drupal/sites/all/modules/islandora_datastreams_io/includes/utilities.inc).
Yep, this is still an issue after the latest commit. Continuing to keep these extract folders in my /tmp file that can't be deleted, with __MACOSX in them.
If using a Mac and zipping files, the archive automatically contains some hidden files. This module reads the hidden files as datastreams relating to nonexistent objects.
e.g. I zipped up a MODS XML file for import, and got the following:
If you continue, you "successfully" push both datastreams:
I don't know what happens to the _MACOSX object (which doesn't exist of course), but including the hidden file in the temp directory causes problems. When running the import tool, you get a warning about the previous import:
If you navigate to the temp directory in the command line, you'll find a directory called MACOSX. This directory cannot be deleted: `rmdir: failed to remove ‘MACOSX’: Permission denied`
And it cannot have its permissions changed:
chmod: changing permissions of ‘__MACOSX’: Operation not permitted
Solution would be to screen for such files during upload and exclude them.