uvasoftware / scanii-lambda

A Sam-Packaged AWS Lambda client to the scanii.com content processing service

Home Page:https://scanii.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Attempting to process directories caused processing to fail

rferreira opened this issue · comments

scanii-lambda sees it as an object but when it tries to download it, gets an empty file.

All right. a S3 event for a directory (not a file) has a key that ends in "/", so what you want to do here is to add another assert that checks for that and fail (since scanii cannot process it). You also need to write a test, that should be super simple you just need to modify the payload to include a key that ends in /