s3_listfiles: List names of files within a bucket on AWS S3

s3_listfilesR Documentation

List names of files within a bucket on AWS S3

Description

This function is a wrapper for functionality of paws list_objects. It parses list format returned by paws to return only file names in a given directory.

Usage

s3_listfiles(aws_profile, bucket_name, sub_dir = "")

Arguments

aws_profile

Name of profile to access AWS. This must match .aws config file

bucket_name

Name of AWS bucket

sub_dir

Name of subdirectory within specified AWS bucket (optional)

Value

A character vector of paths to files in specified s3 bucket and sub directory


ecodata-technology/ecodatamisc documentation built on Feb. 13, 2024, 11:54 a.m.