From 796932b62e7d007a46d8ad31cdb618e8125073ab Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Tue, 30 Sep 2025 15:09:48 -0400 Subject: Initial support for opening container formats. --- python/filemetadata.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'python/filemetadata.py') diff --git a/python/filemetadata.py b/python/filemetadata.py index fd1fc328..1aae3139 100644 --- a/python/filemetadata.py +++ b/python/filemetadata.py @@ -208,6 +208,15 @@ class FileMetadata: def filename(self, value: str) -> None: 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)""" -- cgit v1.3.1