diff options
| author | Brian Potchik <brian@vector35.com> | 2021-03-30 12:08:21 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2021-03-30 12:08:21 -0400 |
| commit | ec5acd622aa48e7b87f6246e774983a7652c0acd (patch) | |
| tree | 0dc7dbd99dcdb8849d48132e4a88efcbfe8b9514 /python | |
| parent | 3d4c8e147c5f6a6e257ef48cfb5fe476c35b1d7b (diff) | |
Add ability to query for database backing of specific BinaryViewTypes and fix state initialization.
Diffstat (limited to 'python')
| -rw-r--r-- | python/filemetadata.py | 6 |
1 files changed, 3 insertions, 3 deletions
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): |
