amzn / smoke-aws

AWS services integration for the Smoke Framework
Apache License 2.0
111 stars 19 forks source link

S3 "file system" utilities #138

Closed pbthif closed 1 year ago

pbthif commented 1 year ago

Issue #, if available:

Description of changes: Added a few utility functions for S3:

  1. parentPath: Returns the parent "folder" of a S3 object, i.e. the key path up to and including the final '/'.
  2. fileName: Returns the "file name" of an S3 object, i.e. the key path suffix starting at the final '/'.
  3. listFolder: Returns all objects within a S3 "folder".

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.