Gregwar / Image

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

Not working dropOldFiles if cache dir contains direction named 0 #178

Open oxatkoCZ opened 2 years ago

oxatkoCZ commented 2 years ago

https://github.com/Gregwar/Image/blob/f3dbe19318c95e0b73659f5ca70cbd63c6597ea5/GarbageCollect.php#L37

If your cache directory contains subdirectory named 0 condition on line 37 is evaluated as false and while condition end with zero iterations.