Giter Club home page Giter Club logo

wv_file_cleanup's Introduction

About

This extension should provide an easy way to remove unused files in the TYPO3 FAL.

How to use

After installing ext:wv_file_cleanup a new BE module appears under "File".

Also the symfony commands wv_file_cleanup:cleanup and wv_file_cleanup:emptyrecycler will be available.

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

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

Options

You can configure an fileNameDenyPattern that holds a regular expression that is used to check the filename against. If the pattern matches the file is excluded from the cleanup and also not visible in het BE module.

Default value is /index.html/i so all index.html files are excluded and can be adjusted in the extension configuration (see extension manager).

The value can also be overwritten in the command controller (and scheduler task).

Examples

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

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)/'

wv_file_cleanup's People

Contributors

frans-beech-it avatar derhansen avatar davidbruchmann avatar rickymathewkweb avatar borishinzer avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.