py-s3uploader_8.py 310 B

1234567
  1. def _upload_dir(self,bucket,bucketpath,dirsource,files,ignoredates):
  2. s3connection = S3Connection(self.api,self.secret)
  3. s3bucket = s3connection.get_bucket(bucket)
  4. for pair in files:
  5. localfile = pair[0]
  6. bucketfile = pair[1]
  7. self._upload_file(s3connection,s3bucket,localfile,bucketfile,ignoredates)