diff options
| author | Alex Mullins <jalexmullins91@gmail.com> | 2019-04-10 23:42:36 -0500 |
|---|---|---|
| committer | Jordan <jordan@psifertex.com> | 2019-04-11 16:02:40 -0400 |
| commit | 5e0e2f6c667e34f38c7d28d0f40f6d10d9d41492 (patch) | |
| tree | 319fea351c32c820d7457b67dedea3f156cab4f7 /python/examples | |
| parent | 19e16da327584913a5eaa9e1fbe8c5d67265d7b4 (diff) | |
Added filters to TriageFilePicker to show hidden files and folders
Diffstat (limited to 'python/examples')
| -rw-r--r-- | python/examples/triage/files.py | 3 |
1 files changed, 2 insertions, 1 deletions
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) |
