summaryrefslogtreecommitdiff
path: root/src/buildstream/storage/_filebaseddirectory.py
diff options
context:
space:
mode:
authorWilliam Salmon <will.salmon@codethink.co.uk>2019-05-30 13:37:02 +0100
committerWilliam Salmon <will.salmon@codethink.co.uk>2019-07-25 13:57:18 +0100
commit455323471868f653b0a305b9dc7d2a2dde2b9753 (patch)
tree5cb88185c362f183714a83e60de87020d1ab41b4 /src/buildstream/storage/_filebaseddirectory.py
parent43505dfd6da8b6eb3f4d4e544f3cdc0e2a31a947 (diff)
downloadbuildstream-455323471868f653b0a305b9dc7d2a2dde2b9753.tar.gz
Fix descend can not follow symlinks
Diffstat (limited to 'src/buildstream/storage/_filebaseddirectory.py')
-rw-r--r--src/buildstream/storage/_filebaseddirectory.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/buildstream/storage/_filebaseddirectory.py b/src/buildstream/storage/_filebaseddirectory.py
index 8c55819c9..a083f6507 100644
--- a/src/buildstream/storage/_filebaseddirectory.py
+++ b/src/buildstream/storage/_filebaseddirectory.py
@@ -37,6 +37,7 @@ from .. import utils
from ..utils import link_files, copy_files, list_relative_paths, _get_link_mtime, BST_ARBITRARY_TIMESTAMP
from ..utils import _set_deterministic_user, _set_deterministic_mtime
from ..utils import FileListResult
+from .._exceptions import ImplError
# FileBasedDirectory intentionally doesn't call its superclass constuctor,
# which is meant to be unimplemented.
@@ -47,9 +48,12 @@ class FileBasedDirectory(Directory):
def __init__(self, external_directory=None):
self.external_directory = external_directory
- def descend(self, *paths, create=False):
+ def descend(self, *paths, create=False, follow_symlinks=False):
""" See superclass Directory for arguments """
+ if follow_symlinks:
+ ImplError("FileBasedDirectory.Decend dose not implement follow_symlinks=True")
+
current_dir = self
for path in paths: