1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

Fix controllo sui permessi all'aggiornamento

This commit is contained in:
MatteoPistorello
2021-12-13 16:24:40 +01:00
parent 04c00952bf
commit 469e0acc16
2 changed files with 8 additions and 3 deletions

View File

@@ -130,7 +130,9 @@ function copyr($source, $destination, $ignores = [])
// Filesystem Symfony
$fs = new SymfonyFilesystem();
$fs->chmod($destination, 0777, 0000, true);
try {
$fs->chmod($destination, 0777, 0000, true);
} catch (\Exception $e) {}
foreach ($files as $file) {
$filename = rtrim($destination, DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR.$file->getRelativePathname();