<?php
$networkDrive = '\\\\hq_base\\shared_home\\GOPOOLS\\CRM\\Final\\v1.3.0_Cumulative_Update';
$localPath = 'c:\\xampp\\htdocs\\gopools';

$files = [
    'public/api/project_delete.php',
    'public/projects/index.php'
];

foreach ($files as $file) {
    $src = $localPath . '\\' . str_replace('/', '\\', $file);
    $dest = $networkDrive . '\\' . str_replace('/', '\\', $file);
    
    // Create directory if it doesn't exist
    $dir = dirname($dest);
    if (!is_dir($dir)) {
        mkdir($dir, 0777, true);
    }
    
    if (file_exists($src)) {
        if (copy($src, $dest)) {
            echo "Copied: $file\n";
        } else {
            echo "Failed to copy: $file\n";
        }
    }
}
echo "Done!\n";
