[development] Temp file conflicts

Rob Barreca rob at electronicinsight.com
Thu Jul 5 20:44:58 UTC 2007


Earnie Boyd wrote:
> I haven't worked on a way but possibilities exist.  The one I see 
> working best is to move the files directory to the sites directory.  
> So if I have sample1.com and sample2.com; sites/sample1.com/files and 
> sites/sample2.com/files would separate them.
>
That is best practice for the files directory, but he was asking about 
the tmp directory which is different. I was using /tmp/sample1.com and 
/tmp/sample2.com, but just ran into an issue where if that subdir got 
removed by some process or server restart, CSS/JS aggregator would 
completely barf with the file /tmp/FJKdkjfsldjf could not be moved to 
files/css/34jk3l4j2k34j34.css because it is not configured properly.

Bad error message as it really means that /tmp/sample1.com folder needs 
to be created. I just created an issue for this at 
http://drupal.org/node/157134 so I remember.

-Rob


More information about the development mailing list