From 9a0333acf1fe6f6672710ce65cfce2ae9dd866f4 Mon Sep 17 00:00:00 2001 From: Thomas Vanbesien Date: Fri, 5 Jun 2026 11:39:09 +0200 Subject: feat: add tool to find syncthing conflicts --- tools/find_syncthing_conflicts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 tools/find_syncthing_conflicts (limited to 'tools') diff --git a/tools/find_syncthing_conflicts b/tools/find_syncthing_conflicts new file mode 100755 index 0000000..efdda15 --- /dev/null +++ b/tools/find_syncthing_conflicts @@ -0,0 +1,9 @@ +#!/usr/bin/bash +set -euo pipefail + +readarray -t synced_folders_ids < <(syncthing cli config folders list) +declare -a synced_folders_paths +for f in "${synced_folders_ids[@]}"; do + synced_folders_paths+=("$(syncthing cli config folders "$f" path get)") +done +find "${synced_folders_paths[@]/#'~'/$HOME}" -name '*sync-conflict*' -- cgit v1.3.1