Skip to content

Commit

Permalink
Release 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Riiiad committed Jun 19, 2024
1 parent 78b3e35 commit 4751762
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
21 changes: 16 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
# About

This extension provides an easy way to remove unused files in the TYPO3 FAL.
German:

Die TYPO3 Extension “FAL File Cleanup” bietet eine einfache Möglichkeit, unbenutzte Dateien im TYPO3 System zu identifizieren und automatisch aufzuräumen.
Ein TYPO3 Scheduler Task führt dabei regelmäßig Prüfungen im System durch, und gleich die verlinkten Dateien (Dateireferenzen) mit den vorhandenen Dateien im Fileadmin von TYPO3 ab. Auf Wunsch können diese regelmäßigen Prüfungen auch auf bestimmte Datei-Endungen beschränkt werden.
Sind Dateien identifiziert, welche keine Verlinkung in Inhalten des TYPO3 System besitzen, können diese wahlweise direkt gelöscht, zuerst in einen Papierkorb verschoben und nach definierbaren Intervallen (z.B. nach 30 Tagen) verspätet gelöscht werden.

---
English:

The TYPO3 extension "FAL File Cleanup" offers an easy way to identify and automatically clean up unused files in the TYPO3 system.
A TYPO3 scheduler task carries out regular checks in the system and compares the linked files (file references) with the existing files in the TYPO3 file admin. If desired, these regular checks can also be limited to certain file endings.
If files are identified which do not have a link in the TYPO3 system content, they can be deleted directly, moved to a recycle bin first and deleted after definable intervals (e.g. after 30 days).


# How to use
Expand All @@ -12,11 +23,11 @@ Also, the symfony commands ``wv_file_cleanup:cleanup`` and

Example of using the command controllers::

./typo3/sysext/core/bin/typo3 wv_file_cleanup:cleanup 1:/ --verbose
./typo3/sysext/core/bin/typo3 wv_file_cleanup:emptyrecycler 1:/ --verbose
./typo3/sysext/core/bin/typo3 wv_file_cleanup:cleanup 1:/ -r --verbose
./typo3/sysext/core/bin/typo3 wv_file_cleanup:emptyrecycler 1:/ -a 1month --verbose

It is recommended to use the commands in a CLI context, but they can also be
setup in the _scheduler_ as scheduler tasks.
setup in the _scheduler_ as scheduler tasks.

## Options

Expand All @@ -34,6 +45,6 @@ The value can also be overwritten in the command controller (and scheduler task)

To only match `*.pdf` files you can set the fileNameDenyPattern to ``/^(?!.*\b.pdf\b)/``

Can be tested by executing this from CLI:
Can be tested by executing this from CLI:

./typo3/sysext/core/bin/typo3 wv_file_cleanup:cleanup 1:/ --verbose --dry-run --file-deny-pattern='/^(?!.*\b.pdf\b)/'
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
'title' => 'FAL File cleanup',
'description' => 'Enables cleanup of unused fal records.',
'category' => 'misc',
'version' => '1.2.0',
'version' => '2.0.0',
'state' => 'stable',
'author' => 'Frans Saris',
'author_email' => 'frans@beech.it, ricky@web-vision.de, riad@web-vision.de',
Expand Down

0 comments on commit 4751762

Please sign in to comment.