From 5e0e2f6c667e34f38c7d28d0f40f6d10d9d41492 Mon Sep 17 00:00:00 2001 From: Alex Mullins Date: Wed, 10 Apr 2019 23:42:36 -0500 Subject: Added filters to TriageFilePicker to show hidden files and folders --- python/examples/triage/files.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'python/examples/triage') diff --git a/python/examples/triage/files.py b/python/examples/triage/files.py index 1df78dd3..84273657 100644 --- a/python/examples/triage/files.py +++ b/python/examples/triage/files.py @@ -1,7 +1,7 @@ import os from PySide2.QtWidgets import QWidget, QTreeView, QFileSystemModel, QVBoxLayout, QMessageBox, QAbstractItemView from PySide2.QtGui import QKeySequence -from PySide2.QtCore import QSettings +from PySide2.QtCore import QSettings, QDir from binaryninjaui import UIActionHandler, UIAction, Menu, FileContext, ContextMenuManager, UIContext from binaryninja.settings import Settings @@ -20,6 +20,7 @@ class TriageFilePicker(QWidget): self.model = QFileSystemModel() self.model.setRootPath("") + self.model.setFilter(QDir.AllEntries | QDir.Hidden | QDir.System) self.tree = QTreeView(self) self.tree.setModel(self.model) self.tree.setSelectionMode(QAbstractItemView.ExtendedSelection) -- cgit v1.3.1