Gregwar / Image

A PHP library to handle images
MIT License
1k stars 191 forks source link

GarbageCollector not removing all images #160

Open StefanGla opened 5 years ago

StefanGla commented 5 years ago

Hello,

I'm using the GarbageCollector as described: GarbageCollect::dropOldFiles($this->img_cache_dir, 30, true); where $this->img_cache_dir is my /web/image_cache directory.

The GarbageCollector deletes some files, but when I check one subfolder of /web/image_cache/0 for example, there are still older images in it:

2019-04-11+18:55:51.2625899500 ./web/image_cache/0/e/0/b/6/0e0b65c7624be7a5d48590b099c3290c9de97008.jpeg

I'm running the script as root, so there should no file access permission issues.