Skip to content

Commit

Permalink
feat(FileSystem): Filter KlipperScreen rolled logs
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Lamas <[email protected]>
  • Loading branch information
pedrolamas committed Aug 15, 2024
1 parent d8f4983 commit 510c781
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/widgets/filesystem/FileSystem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 510c781

Please sign in to comment.