Deletes the file(s) or directory(ies) passed as input. Directories are removed recursively.
- Service:
CleverAge\ProcessBundle\Task\File\FileRemoverTask
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:
service: '@CleverAge\ProcessBundle\Task\File\FolderBrowserTask'
options:
folder_path: '%kernel.project_dir%/var/tmp'
outputs: [cleanup]
cleanup:
service: '@CleverAge\ProcessBundle\Task\File\FileRemoverTask'