s3tools / s3cmd

Official s3cmd repo -- Command line tool for managing S3 compatible storage services (including Amazon S3 and CloudFront).
https://s3tools.org/s3cmd
GNU General Public License v2.0
4.51k stars 901 forks source link

s3cmd accounting #881

Open nekoyokoshima opened 7 years ago

nekoyokoshima commented 7 years ago

Would it be possible to print out the number of PUT/GET/COPY/POST/LIST requests when s3cmd has finished?

fviard commented 7 years ago

Interesting idea but could be a little complicated to implement in a clean way regarding reporting and all.

If you want to hack your own s3cmd for your own case, it can not be very complicated as there are only a few functions to send requests, send and receive files. All of them located in S3/S3.py. There, you can just use "method_string" to try to differentiate the different account cases: PUT/HEAD/GET....