summaryrefslogtreecommitdiff
path: root/python/filemetadata.py
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2018-08-28 17:19:32 -0400
committerRusty Wagner <rusty@vector35.com>2018-08-28 17:19:32 -0400
commit20e06506a3d96c7327ca5d729ab01e8c2a7cff3c (patch)
tree65880063ccbdcb45cc247a0138915d8560d2ec27 /python/filemetadata.py
parent5841af2db8e8dcf4e0da0c438ac040c5fa90038b (diff)
parent426bb3d8b47b93658bf969c429a8b98adae13c30 (diff)
Merge branch 'dev' into test_stack_adjust
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