mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
Add permission copying to ArtifactExtractor
This commit is contained in:
parent
18434b68f6
commit
508f635f01
@ -428,6 +428,9 @@ class ArtifactExtractor
|
|||||||
FileSystem::copyDir($src, $dst);
|
FileSystem::copyDir($src, $dst);
|
||||||
} else {
|
} else {
|
||||||
copy($src, $dst);
|
copy($src, $dst);
|
||||||
|
// copy permissions
|
||||||
|
$perms = fileperms($src) & 0x1FF; // Get rwxrwxrwx bits
|
||||||
|
chmod($dst, $perms);
|
||||||
}
|
}
|
||||||
|
|
||||||
logger()->debug("Copied {$src} -> {$dst}");
|
logger()->debug("Copied {$src} -> {$dst}");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user