-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for uploading files from a directory to S3 (#67)
* Add basic functionality for uploading all files * Address low-hanging fruit in error handling * Handle errors properly in the `worker` module * Move directory traversal I/O to a special thread pool * Add unit tests for functions in the `worker` module * Add integration tests for uploading multiple objects * Run `cargo fmt` * Fix clippy warnings * Add license to `test-common` * Specify crate version for `test-common` * Separate unit tests for `worker` module between Unix and Windows * Add missing `use` statement for `derive_object_key` * Update aws-s3-transfer-manager/test-common/src/lib.rs Co-authored-by: Waqar Ahmed Khan <[email protected]> * Fix upload multiple objects in the example This commit addresses #67 (comment) #67 (comment) #67 (comment) * Avoid `unwrap` in the example This commit addresses #67 (comment) #67 (comment) * Compare `delim` against `MAIN_SEPARATOR_STR` This commit addresses #67 (comment) * Rename channel ends `work_*` to `list_directory_*` This commit addresses #67 (comment) * Add TODO to replace `&Option<String>` with `Option<&str>` This commit addresses #67 (comment) * Add integration test for checking `UploadInput` in falied transfer * Also verify the object key in `failed_transfers` * Use `.into()` from an error in constructing `InputStream` This commit addresses #67 (comment) * Log when `upload_objects` recevies an error from `list_directory` This commit addresses #67 (comment) * Add comment to `DEFAULT_DELIMITER` This commit addresses #67 (comment) * Add TODO for the use of the `blocking` crate * Remove `Option` from list of failed transfers This commit addresses #67 (comment) * Add TODO for implementing more sophisticated error handling This commit addresses #67 (comment) * Add TODO to consider moving `input` out of the `State` struct This commit responds to #67 (comment) * Add comments on the upper `size_hint` of `InputStream` This commit addresses #67 (comment) * Add `impl From` to convert state to output This commit addresses #67 (comment) * Map `walkdir::Error` to `error::Error` accordingly This commit addresses #67 (comment) --------- Co-authored-by: Waqar Ahmed Khan <[email protected]>
- Loading branch information
1 parent
790ead4
commit c88e07f
Showing
22 changed files
with
1,164 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.