From ec5acd622aa48e7b87f6246e774983a7652c0acd Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Tue, 30 Mar 2021 12:08:21 -0400 Subject: Add ability to query for database backing of specific BinaryViewTypes and fix state initialization. --- python/filemetadata.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python/filemetadata.py') diff --git a/python/filemetadata.py b/python/filemetadata.py index bce4301f..903a36f6 100644 --- a/python/filemetadata.py +++ b/python/filemetadata.py @@ -201,9 +201,9 @@ class FileMetadata(object): return core.BNIsAnalysisChanged(self.handle) @property - def has_database(self): - """Whether the FileMetadata is backed by a database (read-only)""" - return core.BNIsBackedByDatabase(self.handle) + def has_database(self, binary_view_type = ""): + """Whether the FileMetadata is backed by a database, or if specified, a specific BinaryViewType (read-only)""" + return core.BNIsBackedByDatabase(self.handle, binary_view_type) @property def view(self): -- cgit v1.3.1