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