attempted rmdir with cron job
| Project: | FSCache |
| Version: | 4.6.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | gordon |
| Status: | closed |
Jump to:
Every time my cron job runs I get the following errors:
First --
warning: rmdir(misc/fscache//A9): Directory not empty in /home/dajudge2/public_html/dr/main/modules/fscache.module on line 368.
Then --
warning: rmdir(misc/fscache//A9/FD): Permission denied in /home/dajudge2/public_html/dr/main/modules/fscache.module on line 368.
That directory (and I don't understand the // ) IS in fact empty. I'm tempted to just delete the directory but since I don't understand how fscache works, I don't know but what that emptry directory actually serves a purpose.
The code starting at line 368 is:
function _fscache_generate_cache_name($offset = 0) {
$fname = strtoupper(dechex(time()+$offset));
$fname = strrev($fname);
return $fname;
}
What to do?
gil

#1
I am not too sure but try removing the "/" from the end of the path. I have add a fix that will strip that automatically, so give this a try.
#2
#3
This same error is present on my site when the cron job runs (via poormanscron), the errors are generated. I have removed the / from the path but it has not helped.
Message rmdir(public/files/fscache/13/3E): Permission denied in C:\www\webroot\drupal\modules\fscache.module on line 371.
Message rmdir(public/files/fscache/13): Directory not empty in C:\www\webroot\drupal\modules\fscache.module on line 371.
#4
the web server needs full permission to all the directories under the fscache dir. it will try to clean up if it can.
#5