Function s3_algo::files_recursive
source · pub fn files_recursive(
src_dir: PathBuf,
key_prefix: PathBuf
) -> impl Iterator<Item = ObjectSource>
Expand description
Convenience function (using walkdir
) to traverse all files in directory src_dir
. Returns an
iterator that can be used as input to S3Algo::upload_files
, which uploads files
with a key equal to the file’s path with src_dir
stripped away, and with key_prefix
prepended.