Works wth local files and S3