Abort the running task if the specified field in an entry matches the regexp. This is useful when moving local files around and a program is currently transferring data to the disk.
abort_if_exists:
regexp: <regexp>
field: <field name>
Abort the task if lftp is currently transferring data.
tasks:
example_task:
filesystem:
path:
- /storage/movies/
- /storage/tv/
recursive: yes
retrieve: files
regexp: '.*\.(avi|mkv|mp4|lftp-get-status)$'
abort_if_exists:
regexp: '.*\.lftp-get-status$'
field: location