title: Python (Boto/tinys3) Upload file to AWS S3 bucket subdirectory
body: <pre><code>conn = tinys3.Connection(S3_ACCESS_KEY,S3_SECRET_KEY)
  f = open('sample.zip','rb')
  conn.upload('sample.zip',f,bucketname)
  </code></pre>
  
  <p>I can upload the file to my bucket (test) via the code above, but I want to upload it directly to test/images/example. I am open to moving over to boto, but I can't seem to import boto.s3 in my environment.</p>
  
  <p>I have looked through <a href="https://stackoverflow.com/questions/15085864/how-to-upload-a-file-to-directory-in-s3-bucket-using-boto/41974925">How to upload a file to directory in S3 bucket using boto</a> but none of the tinys3 examples show this.</p>