From 7aa89259be91ff7db473ab68bb226fa27e077225 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Thu, 5 Dec 2024 10:29:06 +0000 Subject: [PATCH] FileLog.pm: enable wildcards in the directory part of the file (Forum #139985) git-svn-id: https://svn.fhem.de/fhem/trunk@29400 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/92_FileLog.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/fhem/FHEM/92_FileLog.pm b/fhem/FHEM/92_FileLog.pm index 6b72f9ad4..66b1a9a14 100644 --- a/fhem/FHEM/92_FileLog.pm +++ b/fhem/FHEM/92_FileLog.pm @@ -243,6 +243,7 @@ FileLog_Switch($) $log->{currentlogfile} = $cn; return 1 if($log->{READONLY}); $fh->close() if($fh); + restoreDir_mkDir($cn=~m,^/,? "":".", $cn, 1); HandleArchiving($log); $fh = new IO::File ">>$cn"; if(!defined($fh)) {