List files of a flysystem storage
Input is ignored
League\Flysystem\StorageAttributes
Code | Type | Required | Default | Description |
---|---|---|---|---|
filesystem |
string |
X | The source flysystem/storage. See config/packages/flysystem.yaml to see configured flysystem/storages. |
|
file_pattern |
string |
The file_parttern used in preg_match to match into filesystem |
- Simple list task configuration from a filesystem
- see config/packages/flysystem.yaml to see configured flysystems/storages.
- list all .csv files from 'storage.source'
- output will be League\Flysystem\StorageAttributes representation of copied files
# Task configuration level
code:
service: '@CleverAge\FlysystemProcessBundle\Task\ListContentTask'
options:
filesystem: 'storage.source'
file_pattern: '/.csv$/'