some progress

This commit is contained in:
2025-09-06 14:41:10 +03:00
parent d709de39dc
commit 7e0e330ef6
20 changed files with 1051 additions and 485 deletions
@@ -56,12 +56,15 @@ class FetchExportCommand extends Command
private function downloadFile($url, $path): void
{
echo "Downloading file at ".$url."\n";
$newFileName = $path;
$file = fopen ($url, 'rb');
$newFile = null;
if ($file) {
echo "Starting download ".$url."\n";
$newFile = fopen ($newFileName, 'wb');
if ($newFile) {
echo "in progress ".$url."\n";
while(!feof($file)) {
fwrite($newFile, fread($file, 1024 * 8), 1024 * 8);
}