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 - CopyAddDate - Copy file and add a timestamp to the end of the filename
- CopyDeleteAfter - After copying the file delete it in repository - CopyDeleteAfter - After copying the file delete it in repository
- RunWithEndFile - Only execute action when we receive file with extension .fin or .end - 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) - Route - For each Route options (cp, ftp, sftp, mail)
cp => realpath of dir cp => realpath of dir
ftp ftp

View File

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

View File

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