summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim MacArthur <jim.macarthur@codethink.co.uk>2018-09-17 17:12:39 +0100
committerJim MacArthur <jim.macarthur@codethink.co.uk>2018-09-19 16:16:28 +0100
commit1ac5be0fa2171af2f704def2227b96325e06abd6 (patch)
treea9c238fb38f01ce4a33d0408b2e15ae4d2786c56
parent14bcd4317dde8625aea11ca7c89e1984b93354bc (diff)
downloadbuildstream-1ac5be0fa2171af2f704def2227b96325e06abd6.tar.gz
_casbaseddirectory: List directory names in file lists
-rw-r--r--buildstream/storage/_casbaseddirectory.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/buildstream/storage/_casbaseddirectory.py b/buildstream/storage/_casbaseddirectory.py
index 6da605e40..0dd37aff4 100644
--- a/buildstream/storage/_casbaseddirectory.py
+++ b/buildstream/storage/_casbaseddirectory.py
@@ -722,6 +722,7 @@ class CasBasedDirectory(Directory):
for (k, v) in self.index.items():
if isinstance(v.buildstream_object, CasBasedDirectory):
filelist.extend([k + os.path.sep + x for x in v.buildstream_object.list_relative_paths()])
+ filelist.append(k)
print("Add directory {}".format(k))
elif isinstance(v.pb_object, remote_execution_pb2.FileNode):
filelist.append(k)