ulsdevteam / islandora_datastreams_io

Islandora Datastreams Import / Export Utility
GNU General Public License v2.0
5 stars 4 forks source link

rmdir command fails because it's "not empty" #1

Closed bondjimbond closed 6 years ago

bondjimbond commented 6 years ago

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).

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

bondjimbond commented 6 years ago

Apparently there is code to clear the directory; my issue is another problem.. Will open a second issue and close this.