diff --git a/fileSend.php b/fileSend.php index df95bb0..a51878a 100644 --- a/fileSend.php +++ b/fileSend.php @@ -76,6 +76,8 @@ if ( isset($opts->file) ) $fluxBasePath = $c->profil->path->ftp . '/' . $client; } + $fluxBasePath .= '/send'; + $OptionsCopyAddDate = false; $OptionsCopyDeleteAfter = false; $OptionsRunWithEndFile = false; @@ -124,6 +126,9 @@ if ( isset($opts->file) ) $lines = file($fluxBasePath . '/' . $filenameIn); $nbLines = count($lines); + //Define default out filename + $filenameOut = $filenameIn; + //Add date to filename if ( $OptionsCopyAddDate ) { $extensionLength = 0;