jeremychone / rust-ss3 Goto Github PK
View Code? Open in Web Editor NEWYet another S3 command line utilities... but env driven, per bucket.
License: Apache License 2.0
Yet another S3 command line utilities... but env driven, per bucket.
License: Apache License 2.0
Implement the sync
command. (see #5 for original request)
Thanks for making ss3. I'm using it to download an S3 bucket to local files. The bucket objects were created over several years, but the downloaded files all show today's date. I wish ss3 would set the file creation and modification times to the times of the source S3 objects.
The tool could also set the file creation time to the time of the oldest object version.
Would be neat to use something like https://docs.rs/indicatif/ (or any of the other progress bar crates) for a file upload progress bar.
Line 15 in 8b3dad3
I'd really like to use this tool over the normal awscli
Python based however, two operations that are missing are the sync
and rm
file operations.
It should be possible to list buckets with this command, rather than returning an error:
ss3 ls s3://
Implement the rm
command. (see #5 origiinal request)
rm
command will prompt the user to confirm the delete-f
or --force
flag (or something like it) to bypass the promptHappy paths:
# Full path, to remove a key (will prompt to confirm).
ss3 rm ss3://bucket-name/path/to/key.txt
# Same as above, but no prompt.
ss3 rm ss3://bucket-name/path/to/key.txt --force
# Prefix recursive delete (--recursive or -r).
ss3 rm ss3://bucket-name/path/to/key.txt --recursive
Fail paths:
# WILL FAIL - Cannot delete a full folder without the `-r` flag.
ss3 rm ss3://bucket-name/path/to
# WILL FAIL - Cannot delete bucket (but with -r will work and delete all content of the bucket)
ss3 rm ss3://bucket-name
# WILL FAIL - Cannot delete buckets
ss3 rm ss3://
For a multiple file upload - I'd be happy if this tool took advantage of Rust's concurrency properties to upload a file on each CPU available by default. A separate user option to specify the number of threads could of course also be available.
AWS do seem to impose limits, but the number are still quite high:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.