Skip to content

Instantly share code, notes, and snippets.

View HoangTheBoss's full-sized avatar
🖥️
Much love from r/homelab

Nguyen Hoang HoangTheBoss

🖥️
Much love from r/homelab
View GitHub Profile
param (
[string]$jpgDir = $(Read-Host "Enter path to JPG directory"),
[string]$rawSourceDir = $(Read-Host "Enter path to RAW source directory"),
[string]$rawDestDir = $(Read-Host "Enter path to RAW destination directory"),
[string]$rawExt = $(Read-Host "Enter RAW file extension (e.g., ARW, RAF, CR3)")
)
# Normalize extension
$rawExt = $rawExt.TrimStart('.').ToUpper()
import os
import shutil
import sys
def copy_corresponding_raw_files(jpg_dir, raw_source_dir, raw_dest_dir, dry_run=False):
# Validate input directories
if not os.path.isdir(jpg_dir):
print(f"❌ JPG directory not found: {jpg_dir}")
sys.exit(1)
if not os.path.isdir(raw_source_dir):
1.52.0.0/14
14.0.16.0/20
14.160.0.0/11
14.224.0.0/11
27.0.12.0/22
27.0.240.0/22
27.2.0.0/15
27.64.0.0/12
27.118.16.0/20
42.1.64.0/18