Audit files is designed to perform audits of your upload directory and the corresponding database records. It will cross check that all files in the database have a corresponding physical file, or it will check that all files in the upload directory have a corresponding entry in the database.

This module can be helpful in identifying orphan files that have not been deleted when their corresponding node was removed.

The module has configurable options to ignore specified files and/or directories.

The reports allow you to permanently remove files or database entries that represent orphans.

Version 4

Is feature and config compatible with version 3, with deprecations removed and increased requirements. If you have customisations in code, you will likely need to adjust.

Requires Composer for managing constraints.

Version 4.0 supports Drupal 9 and PHP 8.0.
Version 4.1 supports Drupal 10 and PHP 8.1.
Version 4.2 supports Drupal 10.1 and PHP 8.1.

Version 4.0 and 4.1 are planned to remain identical in functionality, only adding bugfixes. New features will go into 4.2 and greater.

Note for the transition from Drupal 9 to 10, you should test 4.0 on your Drupal 9 site before upgrading to Drupal 10. You should only anticipate breaks if you are customizing Audit Files with PHP code. When you're ready to upgrade to Drupal 10, you can expect 4.1 to work identically.

Version 3

Compatible with Drupal 8 and 9.

Drupal 8 support no longer provided.

Versions

Major version 2.x 3.x 4.0.x 4.1.x 4.2.x 4.3.x (Future)
Drupal core ^8 || ^9 ^9 ^10.0 ^10.1 ^10.1
PHP Compatibility Same as core >=8.0 >=8.1 >=8.1 >=8.2
Stability Stable N/A
Support Security only Bug fixes New features and bug fixes
Until PHP 7.4 security support ends or Drupal 9 EOL, whichever is earlier. Until PHP 8.0 security support ends or Drupal 9 EOL, whichever is earlier. Until PHP 8.1 security support ends or Drupal 10.0 EOL, whichever is earlier. Until PHP 8.1 security support ends or Drupal 10.1 EOL, whichever is earlier. Until PHP 8.2 security support ends or Drupal 10.1 EOL, whichever is earlier.

Related modules

  • File Checker provides similar functionality. (Drupal 7 only)

Project information

Releases