#!/bin/bash
# Wrapper script for file migration

cd "$(dirname "$0")"

# Check if venv exists
if [ -d "backend/venv" ]; then
    source backend/venv/bin/activate
elif [ -d "venv" ]; then
    source venv/bin/activate
fi

# Run migration
python3 backend/migrate_file_organization.py "$@"
