littlstar / s3-lambda

Lambda functions over S3 objects with concurrency control (each, map, reduce, filter)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

add method "rename" to make custom output file name

wellsjo opened this issue · comments

we want to add a function rename be able to modify the output key in map/filter

lambda
  .context(context)
  .map(mapperFunc)
  .output('path/to/output/dir')
  .rename((key) => {
     return key.replace('-', '/')
  }
...etc