summaryrefslogtreecommitdiff
path: root/python/filemetadata.py
diff options
context:
space:
mode:
authorJordan Wiens <jordan@psifertex.com>2018-08-23 00:57:06 -0400
committerJordan Wiens <jordan@psifertex.com>2018-08-23 00:57:06 -0400
commitebed7129ba102453f04f99e2f78278ff8aeef6f9 (patch)
tree74526b041d64c8f6945ef169b617875a7dcc24eb /python/filemetadata.py
parent66fe3d6c8b6a09724ef9cb9e1c0c524258a71c85 (diff)
add support for original_filename property
Diffstat (limited to 'python/filemetadata.py')
-rw-r--r--python/filemetadata.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/python/filemetadata.py b/python/filemetadata.py
index cafe1d67..4d51f4d9 100644
--- a/python/filemetadata.py
+++ b/python/filemetadata.py
@@ -114,8 +114,17 @@ class FileMetadata(object):
_FileMetadataAssociatedDataStore.set_default(name, value)
@property
+ def original_filename(self):
+ """The original name of the binary opened if a bndb, otherwise reads or sets the current filename (read/write)"""
+ return core.BNGetOriginalFilename(self.handle)
+
+ @original_filename.setter
+ def original_filename(self, value):
+ core.BNSetOriginalFilename(self.handle, str(value))
+
+ @property
def filename(self):
- """The name of the file (read/write)"""
+ """The name of the open bndb or binary filename (read/write)"""
return core.BNGetFilename(self.handle)
@filename.setter