Skip to content

Commit

Permalink
Add comment and link to upload_directory gist
Browse files Browse the repository at this point in the history
  • Loading branch information
tdfacer committed Jul 3, 2020
1 parent e6be6b3 commit d727fc0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scout.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
from ScoutSuite.__main__ import run_from_cli


# This function was based on an example found here: https://github.com/boto/boto3/issues/358
# It was modified to determine mime type and set Content-Type HTTP metadata automatically.
def upload_directory(directory, bucket, prefix):
mime = MimeTypes()
s3 = boto3.client("s3")
Expand Down

0 comments on commit d727fc0

Please sign in to comment.