@@ -160,6 +160,12 @@ class FTPDirectorySync extends OperationPluginBase {
...
@@ -160,6 +160,12 @@ class FTPDirectorySync extends OperationPluginBase {
'#description'=>$this->t('Number of files to transfer per batch.'),
'#description'=>$this->t('Number of files to transfer per batch.'),
'#default_value'=>$settings['batch_size']??10,
'#default_value'=>$settings['batch_size']??10,
];
];
$form['file_limit']=[
'#type'=>'number',
'#title'=>$this->t('Transfter file limit'),
'#description'=>$this->t('Limit the number of files to be transfered. After exceeding the limit the operation will stop. <br>This is only useful for testing purposes. <strong>Defaults to "0" which means all files will be downloaded</strong>.'),