From 510c781ea57eae2ad26c937b8d24b840a3a70ab1 Mon Sep 17 00:00:00 2001 From: Pedro Lamas Date: Thu, 15 Aug 2024 09:27:04 +0100 Subject: [PATCH] feat(FileSystem): Filter KlipperScreen rolled logs Signed-off-by: Pedro Lamas --- src/components/widgets/filesystem/FileSystem.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/widgets/filesystem/FileSystem.vue b/src/components/widgets/filesystem/FileSystem.vue index 7631013a14..4191cada28 100644 --- a/src/components/widgets/filesystem/FileSystem.vue +++ b/src/components/widgets/filesystem/FileSystem.vue @@ -420,7 +420,10 @@ export default class FileSystem extends Mixins(StateMixin, FilesMixin, ServicesM break case 'rolled_log_files': - if (file.type === 'file' && file.filename.match(/\.\d{4}-\d{2}-\d{2}(_\d{2}-\d{2}-\d{2})?$/)) { + if (file.type === 'file' && ( + file.filename.match(/\.\d{4}-\d{2}-\d{2}(_\d{2}-\d{2}-\d{2})?$/) || + file.filename.match(/\.log\.\d+/) + )) { return false } break