Closed inalto closed 5 months ago
Hi, could you also add a test to prove that this works?
yes, I write one
hello, i added some test and spotted some bugs on DefaultFileRemover, now i look at failing tests
Problem in case of custom-named media is fixed now. And all the test are passing, included new ones.
Thank you very much!
In case of custom paths setup to save the images in the same subdirectory ex. username/post_id/photos/somefile.ext when a file is removed from the media directory it wipes all the directory content.
This commit fixes this problem only deleting the proper images (and related conversions and responsive images) and delete the directory only if is empty.