Closed (fixed)
Project:
Drupal core
Version:
5.7
Component:
file system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Mar 2008 at 22:30 UTC
Updated:
24 Jul 2008 at 11:24 UTC
I have an installation of Drupal on a live site. For CSS files, our graphic designer likes to put them in the folder /css. I recently turned cache'ing from normal to disabled. When I did so, all files in /css were deleted.
Searching as to how, I found that the function drupal_clear_css_cache() was deleting the files. From searching on the web, it seems that it should be deleting the files in /files/css/.
The function is one line:
file_scan_directory(file_create_path('css'), '.*', array('.', '..', 'CVS'), 'file_delete', TRUE);
Should it be:?
file_scan_directory(file_create_path('files/css'), '.*', array('.', '..', 'CVS'), 'file_delete', TRUE);
Comments
Comment #1
damien tournoud commentedAt first sight, that part of the code looks reasonable.
Could you indicate which are the following paths on your system?
The two latter being available in
admin/settings/file-system.Comment #2
Diamonds commentedRoot: /var/www/fightclub/qa/html
File system path: /var/www/fightclub/qa/localfiles/uploadedfiles
Temporary Directory: /var/www/fightclub/qa/localfiles/tempfiles
Comment #3
Diamonds commentedComment #4
damien tournoud commentedNo activity on this, closing.