GetDKAN / dkan

DKAN Open Data Portal
https://dkan.readthedocs.io/en/latest/index.html
GNU General Public License v2.0
365 stars 170 forks source link

Resource directories are not removed after file import #3697

Open janette opened 2 years ago

janette commented 2 years ago

https://github.com/GetDKAN/dkan/blob/2.x/modules/datastore/src/Plugin/QueueWorker/Import.php#L137

Steps To Reproduce

  1. Create a dataset with a csv distribution
  2. Run cron
  3. Check sites/default/files/resources/
  4. Confirm the empty directory for your distribution is still there

Expected behavior

The file AND directory should be removed from sites/default/files/resources/ after import completes.

janette commented 2 years ago

Update: the directory IS removed, however, it is immediately recreated.

dafeder commented 4 months ago

Heh. @janette is this still the case?