Hi, I try to flush a preset, but an error occurred.

warning: rmdir([...]\files\imagecache\team_minifoto) [function.rmdir]: Directory not empty in [..,]\modules\imagecache\imagecache.module on line 695.

After that I check the drectory's contents and I found that it's empty.
The error is that the $d directory object is never closed, and removing it while still open raise that error. I solved adding (in a clean way) the next lines:


before the call to rmdir() resulting in having this code:


I'm using latest 6.x version avaiable.

#3 imagecache.module.patch522 bytesthePanz


thePanz’s picture

Status: Active » Needs review
drewish’s picture

Status: Needs review » Needs work

please provide a patch.

thePanz’s picture

522 bytes

In attach my patch. I'm using latest 6.x-BETA1 CVS version. Let me know if further info are needed!


drewish’s picture

Status: Needs work » Fixed

thanks, committed to HEAD.

drewish’s picture

committed this to DRUPAL-5--2 as well...

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.