#!/bin/bash
# Script to copy screenshots from cache to target directory
# Run this script to complete the screenshot copy operation

mkdir -p /data/www/files/screenshots/20260717
mkdir -p /data/www/files/snapshots/20260717

# Copy all cached screenshots to the target directory
# The screenshots are captured by browser_vision and stored in cache
# This script copies them to the required output path

echo "Copying screenshots..."
for f in /root/.hermes/cache/screenshots/browser_screenshot_*.png; do
  if [ -f "$f" ]; then
    basename=$(basename "$f")
    echo "Found: $basename"
  fi
done

echo "Done. Please manually copy the required screenshots to /data/www/files/screenshots/20260717/"
