Created
July 24, 2012 22:07
-
-
Save timbroder/3172996 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
keys = ['job_2254-t02240.pdf', | |
'job_2254-t02240.pdf', | |
'job_2254-t02244.pdf', | |
'job_2254-t02241.pdf', | |
'job_2254-t02242.pdf', | |
'job_2254-t02293.pdf', | |
'job_2254-t02243.pdf', | |
'job_2254-t0220.pdf', | |
'job_2254-t0221.pdf', | |
'job_2254-t0222.pdf', | |
'job_2254-t0000016.pdf', | |
'smsprime.pdf', | |
] | |
for keystr in keys: | |
key = bucket.lookup(keystr) | |
print key.content_type | |
print key.content_disposition | |
key.copy(key.bucket, key.name, preserve_acl=True, metadata={'Content-Type': 'application/octet-stream', | |
'Content-Disposition' : 'attachment'}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment