From a0b6df31f0be34da8efb784df30531e6aece3471 Mon Sep 17 00:00:00 2001 From: Deon George Date: Fri, 7 Jun 2024 09:13:18 +1000 Subject: [PATCH] Move processed TIC files into Y/M/D heirarchy, consistent with packets --- app/Jobs/TicProcess.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Jobs/TicProcess.php b/app/Jobs/TicProcess.php index 2708558..b2cb66e 100644 --- a/app/Jobs/TicProcess.php +++ b/app/Jobs/TicProcess.php @@ -76,7 +76,7 @@ class TicProcess implements ShouldQueue Log::info(sprintf('%s:= Processed [%s] storing [%s] as id [%d]',self::LOGKEY,$this->file,$to->file->name,$to->file->id)); 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 TIC [%s] to [%s]',self::LOGKEY,$rel_name,$dir)); try {