Skip to content

Commit

Permalink
do not cache s3 folders, only files (#730)
Browse files Browse the repository at this point in the history
  • Loading branch information
Varun Shenoy authored Nov 10, 2023
1 parent 5de969c commit 8901a01
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions truss/contexts/image_builder/serving_image_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,11 @@ def list_files(self, revision=None):

all_objects = []
for blob in bucket.objects.filter(Prefix=path):
# leave out folders
if blob.key[-1] == "/":
continue
all_objects.append(blob.key)

return all_objects

def prepare_for_cache(self, filenames):
Expand Down

0 comments on commit 8901a01

Please sign in to comment.