Deletes the file(s) or directory(ies) passed as input. Directories are removed recursively.
- Service:
CleverAge\ProcessBundle\Task\File\FileRemoverTask - Code:
file_remover(task: file_remover)
string|iterable: path, or list of paths, of files or directories to remove.
Underlying method is Symfony Filesystem::remove(): paths that do not exist are ignored.
No output is set.
This task has no option.
- Remove each file once it has been processed
# Task configuration level
entry:
task: folder_browser
options:
folder_path: '%kernel.project_dir%/var/tmp'
outputs: [cleanup]
cleanup:
task: file_remover