From 47321834ac7ddc912f768b10045d7b87358d77fb Mon Sep 17 00:00:00 2001 From: Deon George Date: Sun, 12 May 2024 20:50:19 +1000 Subject: [PATCH] Change where processed packets are placed, if fido.packet_keep is true --- app/Jobs/PacketProcess.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Jobs/PacketProcess.php b/app/Jobs/PacketProcess.php index acb4a7e..c9e6d54 100644 --- a/app/Jobs/PacketProcess.php +++ b/app/Jobs/PacketProcess.php @@ -132,7 +132,7 @@ class PacketProcess implements ShouldQueue } else { // If we want to keep the packet, we could do that logic here if (config('fido.packet_keep')) { - $dir = sprintf('%s/%s',config('fido.dir'),Carbon::now()->format('Ymd')); + $dir = sprintf('%s/%s/%s/%s',config('fido.dir'),($x=Carbon::now())->format('Y'),$x->format('m'),$x->format('d')); Log::debug(sprintf('%s:- Moving processed packet [%s] to [%s]',self::LOGKEY,$this->file->rel_name,$dir)); try {