diff options
| author | Brian Potchik <brian@vector35.com> | 2025-09-30 15:09:48 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2025-09-30 15:09:48 -0400 |
| commit | 796932b62e7d007a46d8ad31cdb618e8125073ab (patch) | |
| tree | 35937ae27a646cc6a1d7e79cafd4b46b0991a0b1 /python/filemetadata.py | |
| parent | 36a06931b3eac492eb1e609949e2cc5a3a03bf57 (diff) | |
Initial support for opening container formats.
Diffstat (limited to 'python/filemetadata.py')
| -rw-r--r-- | python/filemetadata.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/python/filemetadata.py b/python/filemetadata.py index fd1fc328..1aae3139 100644 --- a/python/filemetadata.py +++ b/python/filemetadata.py @@ -209,6 +209,15 @@ class FileMetadata: core.BNSetFilename(self.handle, str(value)) @property + def virtual_path(self) -> str: + """The virtual path of the file including container and internal path (e.g., 'archive.zip:folder/file.bin') (read/write)""" + return core.BNGetVirtualPath(self.handle) + + @virtual_path.setter + def virtual_path(self, value: str) -> None: + core.BNSetVirtualPath(self.handle, str(value)) + + @property def modified(self) -> bool: """Boolean result of whether the file is modified (Inverse of 'saved' property) (read/write)""" return core.BNIsFileModified(self.handle) |
