Update sync.d

Update PR
This commit is contained in:
abraunegg 2026-03-07 08:39:56 +11:00
commit 49642f64d2

View file

@ -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)) {