diff options
Diffstat (limited to 'src/buildstream/element.py')
-rw-r--r-- | src/buildstream/element.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/buildstream/element.py b/src/buildstream/element.py index 21c38bc1a..9aea442c3 100644 --- a/src/buildstream/element.py +++ b/src/buildstream/element.py @@ -925,6 +925,18 @@ class Element(Plugin): self.__batch_prepare_assemble_flags = flags self.__batch_prepare_assemble_collect = collect + def get_artifact_relative_file_paths(self): + """ Gets the file paths in the artifact and return them in a list + + Args: + targets (str): The name of the artifact to get files of + + Returns: + (list): A list of the file paths in the artifact + """ + casbd = self.__artifact.get_files() + return [f for f in casbd.list_relative_paths()] + ############################################################# # Private Methods used in BuildStream # ############################################################# |