-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathintegrar_arkitect.ps1
More file actions
25 lines (22 loc) · 878 Bytes
/
Copy pathintegrar_arkitect.ps1
File metadata and controls
25 lines (22 loc) · 878 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Caminhos
$src = "$PSScriptRoot\prototype_tmp"
$dest = "$PSScriptRoot"
# Função de cópia inteligente
function Copy-FilesRecursively($source, $destination) {
Get-ChildItem -Path $source -Recurse | ForEach-Object {
$targetPath = $_.FullName.Replace($source, $destination)
if ($_.PSIsContainer) {
if (!(Test-Path -Path $targetPath)) {
New-Item -ItemType Directory -Path $targetPath | Out-Null
}
} else {
Copy-Item $_.FullName -Destination $targetPath -Force
}
}
}
# Execução
Write-Host "🚀 Iniciando fusão simbiótica com ARKITECT_PROTOTYPE..."
Copy-FilesRecursively -source $src -destination $dest
Write-Host "✅ Integração completa! Seus arquivos foram mesclados com sucesso."
# Opcional: deletar o diretório temporário após a fusão
# Remove-Item -Recurse -Force $src