After a successful import, running a second import fails with the following message:
messageWarning: rmdir(/tmp/datastream_io_datastreams_extract_203917_080117): Directory not empty in islandora_datastreams_io_dump_temp_dir() (line 43 of /var/www/drupal/sites/all/modules/islandora_datastreams_io/includes/utilities.inc).
After a successful import, running a second import fails with the following message:
Apparently there is no recursive rmdir function in PHP; the files have to be removed individually. Examples here: https://stackoverflow.com/questions/1653771/how-do-i-remove-a-directory-that-is-not-empty