~linaro-infrastructure/linaro-license-protection/master

Viewing all changes in revision 475.

  • Committer: Kelley Spoon
  • Date: 2019-11-27 02:34:16 UTC
  • Revision ID: git-v1:70b49fc7aa6f108285721094b05199f7ecd1b341
s3_flatten: break bucket listing up by delimiters

Boto's bucket.list_version() function has the option to specify
a delimiter for the key names that are returned.  Delimiters
will treat any occurance of the character as if it was a new
directory and will not "descend" into it.

This change uses delimiters to traverse through all s3 file keys
in the given --prefix, and will clean up the objects table before
descending into a subdirectory in order to prevent wasting memory
storing s3 key data for objects that are no longer going to be
accessed.

Change-Id: I294937c99c60e89a87439789b9031f50e2e5cefc
Reviewed-on: https://review.linaro.org/c/infrastructure/linaro-license-protection/+/33359
Reviewed-by: Benjamin Copeland <ben.copeland@linaro.org>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: