summaryrefslogtreecommitdiff
path: root/python/transform.py
diff options
context:
space:
mode:
authorBrian Potchik <brian@vector35.com>2026-01-30 14:04:22 -0500
committerBrian Potchik <brian@vector35.com>2026-01-30 14:04:22 -0500
commitc674599c102adee1882ccb6778e9c819dfccd305 (patch)
treee4aaa5f07378f6e20c57be22ddd20580ce7788f7 /python/transform.py
parent3c8ce87f45512006f6f2d6818235e1531ac92ab5 (diff)
Improve filename handling for container files.
Diffstat (limited to 'python/transform.py')
-rw-r--r--python/transform.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/python/transform.py b/python/transform.py
index d7f4202f..74279bce 100644
--- a/python/transform.py
+++ b/python/transform.py
@@ -681,15 +681,16 @@ class TransformContext:
return None
return TransformContext(child)
- def create_child(self, data: databuffer.DataBuffer, filename: str = "", result: TransformResult = TransformResult.TransformSuccess, message: str = "") -> 'TransformContext':
+ def create_child(self, data: databuffer.DataBuffer, filename: str = "", result: TransformResult = TransformResult.TransformSuccess, message: str = "", filename_is_descriptor: bool = False) -> 'TransformContext':
"""Create a new child context with the given data, filename, result status, and message
:param data: The data for the child context
:param filename: The filename for the child context (default: "")
:param result: Transform result for the child (default: TransformResult.TransformSuccess)
:param message: Extraction message for the child (default: "")
+ :param filename_is_descriptor: Whether the filename is a descriptor that should be combined with parent (default: False)
"""
- child = core.BNTransformContextSetChild(self.handle, data.handle, filename, result, message)
+ child = core.BNTransformContextSetChild(self.handle, data.handle, filename, result, message, filename_is_descriptor)
if child is None:
raise RuntimeError("Failed to create child context")
return TransformContext(child)