Use exec for big files

This commit is contained in:
Michael RICOIS 2017-01-10 16:52:45 +01:00
parent bdbb4aa81a
commit 48a68828df

View File

@ -131,7 +131,8 @@ if ( $result->count() > 0 ) {
}
// --- Copy du fichier
if ( copy($source, $dest) ) {
exec("cp $source $dest", $output, $result);
if ($result == 0) {
// --- Detail du fichier
$nbLines = 0;
@ -146,7 +147,7 @@ if ( $result->count() > 0 ) {
chown($dest, 'ftpuser');
chgrp($dest, 'ftpgroup');
}
elseif($item->depotType == 'SFTP') {
elseif ($item->depotType == 'SFTP') {
chown($dest, $item->client);
}