2017 © Pedro Peláez
 

typo3-cms-extension falclean

Remove unreferenced files from uploads and fileadmin

image

georggrossberger/falclean

Remove unreferenced files from uploads and fileadmin

  • Friday, June 22, 2018
  • by trenker
  • Repository
  • 4 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

FAL Cleanup

This is a TYPO3 CMS extension that provides a CLI command for removing all unused files from the fileadmin and uploads directory using the reference table sys_file_reference of FAL., (*1)

Installation

Add it into the typo3conf/ext folder., (*2)

via git, (*3)

git clone https://github.com/trenker/typo3.fal_clean.git typo3conf/ext/fal_clean

or via composer, (*4)

composer require georggrossberger/falclean

Using the composer method will, of course, require an installation using the composer integration of TYPO3., (*5)

In both cases, go to the extension manager module and install it., (*6)

There is currently no TER release., (*7)

Usage

The extension offers two CLI extbase commands: simulate and execute. The first will list which records and files will be deleted. The second one acutally deletes them., (*8)

# Show unused files and records
php typo3/cli_dispatch.phpsh extbase falclean:simulate

# Remove the files
php typo3/cli_dispatch.phpsh extbase falclean:execute

Make sure your FAL relations are properly set up, or it will delete more than desired., (*9)

License

The MIT License (MIT), (*10)

Copyright (c) 2015 Georg Großberger, (*11)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:, (*12)

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software., (*13)

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE., (*14)

The Versions

22/06 2018

dev-master

9999999-dev https://github.com/Trenker/typo3.fal_cleanup

Remove unreferenced files from uploads and fileadmin

  Sources   Download

The Requires