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

damien tournoud’s picture

Status: Active » Postponed (maintainer needs more info)

At first sight, that part of the code looks reasonable.

Could you indicate which are the following paths on your system?

  • the root of your Drupal installation
  • your "File system path"
  • your "Temporary directory"

The two latter being available in admin/settings/file-system.

Diamonds’s picture

Root: /var/www/fightclub/qa/html
File system path: /var/www/fightclub/qa/localfiles/uploadedfiles
Temporary Directory: /var/www/fightclub/qa/localfiles/tempfiles

Diamonds’s picture

Status: Postponed (maintainer needs more info) » Active
damien tournoud’s picture

Status: Active » Closed (fixed)

No activity on this, closing.