Closed (won't fix)
Project:
ImageCache
Version:
5.x-2.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 May 2009 at 18:32 UTC
Updated:
24 May 2012 at 07:13 UTC
On a couple of hosts I've worked with, the temp directory is cleaned up periodically.
When creating a lockfile, imagecache fails to create its lockfile, since the preset directory doesn't exist.
This is a simple 3 line patch that will check for the directory and create it before attempting to write out the lockfile.
| Comment | File | Size | Author |
|---|---|---|---|
| imagecache.mkdir_.patch | 510 bytes | IncrediblyKenzi |
Comments
Comment #1
drewish commentedI'm not sure I follow what's going on here--though I'll confess I didn't write this bit of code so I'm not super familiar with its operation. Looking at it I don't see the lockfile created in a sub-directory:
Or are you suggesting that we should do it in a sub-directory?
Comment #2
drewish commentedoh, also per the drupal coding standards, true should be in caps.
Comment #3
fizk commented