This file contains hidden or 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 is a quick script for doing a mass rename of all files in an Amazon S3 bucket. | |
| # In this case, the rename operation was to unescape all filenames which had been | |
| # previously escaped in error. | |
| ############################# | |
| # Configuration: | |
| bucketname = "YOUR_S3_BUCKET_NAME" | |
| access_key = 'YOUR_ACCESS_KEY_ID' | |
| secret_key = 'YOUR_SECRET_ACCESS_KEY' |
This file contains hidden or 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
| /* | |
| When calling JSON.stringify on an object, the prototype chain is not preserved, and all functions are not stored either. | |
| For example, if you called JSON.stringify on this object: | |
| function Foo() { | |
| this.hello = 'world'; | |
| } | |
| Foo.prototype = { |