dkan icon indicating copy to clipboard operation
dkan copied to clipboard

Resource directories are not removed after file import

Open janette opened this issue 3 years ago • 2 comments

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 avatar Oct 19 '21 16:10 janette

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

janette avatar Jul 08 '22 22:07 janette

Heh. @janette is this still the case?

dafeder avatar Apr 05 '24 22:04 dafeder