Skip to content

Commit

Permalink
Merge pull request #796 from tarasfrompir/patch-1
Browse files Browse the repository at this point in the history
Update syncfiles.class.php
  • Loading branch information
sergejey committed Sep 21, 2020
2 parents 4a1cf8f + 6edd74b commit 3bcf6c0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/syncfiles.class.php
Expand Up @@ -784,10 +784,8 @@ function copyTree($source, $destination, $over = 0, $patterns = 0)
}
}
if ($ok_to_copy) {
try {
copy($source . DIRECTORY_SEPARATOR . $file, $destination . DIRECTORY_SEPARATOR . $file);
} catch (Exception $e) {
DebMes('Не смог скопировать файл '. $source . DIRECTORY_SEPARATOR . $file . '. Причина ' . $e->getMessage(), 'error');
if(!@copy($source . DIRECTORY_SEPARATOR . $file, $destination . DIRECTORY_SEPARATOR . $file) {
DebMes('Не смог скопировать файл '. $source . DIRECTORY_SEPARATOR . $file, 'error' );
}
}
}
Expand Down

0 comments on commit 3bcf6c0

Please sign in to comment.