Merged
Conversation
This script allows deleting all files under the web/ prefix in Cloudflare R2 storage using AWS CLI. Includes --force flag to skip confirmation prompt for automated usage. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Add python-dotenv support to automatically load .env file - Update requirements.txt with python-dotenv dependency - Change upload to sync entire output directory to R2 bucket root (previously only synced eli/sfs/ subfolder) - Fix index page generation with absolute paths to resolve subprocess issues - Add automatic JSON directory detection (tries ../sfs-jsondata, sfs_json, data/sfs_json) - Add --json-dir argument for explicit JSON directory specification - Improve error messages and output logging - Make index page generation non-critical (warns instead of fails) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds and improves Cloudflare R2 utility scripts for managing HTML exports:
New script:
delete_web_from_r2.pyweb/prefix in Cloudflare R2 storage--forceflag to skip confirmation prompt for automated usageImprovements to
upload_to_r2.py.envfile loading with python-dotenv--json-dirargument for explicit JSON directory specificationUse case
Test plan
🤖 Generated with Claude Code