Petite correction après mise en prod

This commit is contained in:
Michael RICOIS 2015-07-03 06:21:00 +00:00
parent 769778cfc3
commit 01c88b1963
3 changed files with 4 additions and 4 deletions

2
README
View File

@ -114,7 +114,7 @@ Send Options list (in)
- CopyAddDate - Copy file and add a timestamp to the end of the filename
- CopyDeleteAfter - After copying the file delete it in repository
- RunWithEndFile - Only execute action when we receive file with extension .fin or .end
- Log - Log transfert disable by default
- Log - Log transfert
- Route - For each Route options (cp, ftp, sftp, mail)
cp => realpath of dir
ftp

View File

@ -105,7 +105,7 @@ return array(
'type' => 'FTP',
'in' => array(
'FilterName' => true,
'Route' => array( 'cp' => '/home/data/clients-ftp/vwbeng/send' ),
'Route' => array( 'cp' => '/home/data/clients-ftp/vwbank/send' ),
'CopyDeleteAfter' => true,
),
'out' => array(),

View File

@ -121,12 +121,12 @@ if ( isset($opts->file) )
// --- Filters
if ($optionsFilterName === true) {
if ( strpos($filenameIn, $prestation) === false ) {
exit;
$prestation = null; continue;
}
}
if (is_string($optionsFilterName) && strlen($optionsFilterName) > 0) {
if (strpos($filenameIn, $optionsFilterName) === false) {
exit;
$prestation = null; continue;
}
}