@sync_performer
@do
def perform_upload_s3_key_recursively(dispatcher, intent):
 for child in intent.files:
  path = intent.source_path.preauthChild(child)
  if path.isfile():
   (yield Effect(UploadToS3(source_path=intent.source_path, target_bucket=intent.target_bucket, target_key=('%s/%s' % (intent.target_key, child)), file=path)))

@ sync_performer @ do def perform_upload_s3_key_recursively ( dispatcher , intent ) : for child in intent . files : path = intent . source_path . preauthChild ( child ) if path . isfile ( ) : ( yield Effect ( UploadToS3 ( source_path = intent . source_path , target_bucket = intent . target_bucket , target_key = ( '%s/%s' % ( intent . target_key , child ) ) , file = path ) ) )
see :class:uploadtos3recursively .