summaryrefslogtreecommitdiff
path: root/src/buildstream/storage/directory.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/storage/directory.py')
-rw-r--r--src/buildstream/storage/directory.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/buildstream/storage/directory.py b/src/buildstream/storage/directory.py
index a9249baee..9ce0cacf3 100644
--- a/src/buildstream/storage/directory.py
+++ b/src/buildstream/storage/directory.py
@@ -208,6 +208,16 @@ class Directory:
"""
raise NotImplementedError()
+ def open_file(self, *paths: str, mode: str = "r"):
+ """ Open file and return a corresponding file object. In text mode,
+ UTF-8 is used as encoding.
+
+ Args:
+ *paths: A list of strings which are all path components.
+ mode (str): An optional string that specifies the mode in which the file is opened.
+ """
+ raise NotImplementedError()
+
# FileType:
#