From 1ee7d7210a54f55265f1a8f3e40ed1576048f469 Mon Sep 17 00:00:00 2001 From: schmeeve Date: Tue, 30 Jun 2026 15:13:52 -0700 Subject: [PATCH] fixes? --- comfyui-sync | 2 +- rename-ai-snaps | 19 ++++++++++++++----- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/comfyui-sync b/comfyui-sync index 8344732..210fdbe 100755 --- a/comfyui-sync +++ b/comfyui-sync @@ -3,7 +3,7 @@ set -euo pipefail OUTPUT_SOURCE="$HOME/ComfyUI/output" VIDEO_SOURCE="$HOME/ComfyUI/videos" -AUDIO_SOURCE="$HOME/ComfyUI/audio" +AUDIO_SOURCE="$HOME/ComfyUI/output/audio" SHARE_DIR="/mini.nas/miniShare1/Pictures" STATE_FILE="$HOME/.local/state/comfyui-sync.state" NEATCLI="$(command -v /home/linuxbrew/.linuxbrew/bin/neatcli || true)" diff --git a/rename-ai-snaps b/rename-ai-snaps index 0fac20b..cafff55 100755 --- a/rename-ai-snaps +++ b/rename-ai-snaps @@ -422,8 +422,11 @@ def main(): while new_path.exists(): new_path = old_path.with_name(f"{stem}_{counter}{old_path.suffix}") counter += 1 - old_path.rename(new_path) - renamed += 1 + try: + old_path.rename(new_path) + renamed += 1 + except FileNotFoundError: + print(f" SKIPPED (not found): {old_path.name}") print(f" Renamed {renamed} file(s).") else: renamed = 0 @@ -487,7 +490,10 @@ def main(): while np.exists(): np = p.with_name(f"{stem}_{counter}{p.suffix}") counter += 1 - p.rename(np) + try: + p.rename(np) + except FileNotFoundError: + print(f" SKIPPED (not found): {p.name}") renamed += len(items) - i break else: @@ -505,8 +511,11 @@ def main(): new_path = old_path.with_name(f"{stem}_{counter}{old_path.suffix}") counter += 1 print(f" (file existed, saved as {new_path.name})") - old_path.rename(new_path) - renamed += 1 + try: + old_path.rename(new_path) + renamed += 1 + except FileNotFoundError: + print(f" SKIPPED (not found): {old_path.name}") i += 1 print(f"\n Renamed: {renamed} Skipped: {skipped}")