From 49642f64d274435546a3ee40f7b657b523ab1e60 Mon Sep 17 00:00:00 2001 From: abraunegg Date: Sat, 7 Mar 2026 08:39:56 +1100 Subject: [PATCH] Update sync.d Update PR --- src/sync.d | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/sync.d b/src/sync.d index 40fe494f..5a1aece1 100644 --- a/src/sync.d +++ b/src/sync.d @@ -7718,8 +7718,17 @@ class SyncEngine { logKey = generateAlphanumericString(); displayFunctionProcessingStart(thisFunctionName, logKey); } - - // Add a processing '.' + + // Skip symlinks as early as possible, including dangling symlinks + if (isSymlink(path)) { + // Should this path be skipped? + if (appConfig.getValueBool("skip_symlinks")) { + if (verboseLogging) {addLogEntry("Skipping item - skip symbolic links configured: " ~ path, ["verbose"]);} + return; + } + } + + // Add a processing '.' if path exists if (exists(path)) { if (isDir(path)) { if (!appConfig.suppressLoggingOutput) { @@ -7764,14 +7773,6 @@ class SyncEngine { return; } } - - // Skip symlinks as early as possible, including dangling symlinks - if (isSymlink(path)) { - if (appConfig.getValueBool("skip_symlinks")) { - addLogEntry("Skipping symbolic link: " ~ path); - return; - } - } // A short lived item that has already disappeared will cause an error - is the path still valid? if (!exists(path)) {