Skip to content

Commit f87b1f4

Browse files
committed
Update sync.d
* Add observability for when 'sync_root_files' override is being used when 'sync_list' is in use
1 parent 20ff1b9 commit f87b1f4

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/sync.d

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2541,8 +2541,12 @@ class SyncEngine {
25412541
if ((isItemFile(onedriveJSONItem)) && (appConfig.getValueBool("sync_root_files")) && (rootName(newItemPath) == "") ) {
25422542
// This is a file
25432543
// We are configured to sync all files in the root
2544-
// This is a file in the logical root
2544+
// This is a file in the logical configured root
25452545
unwanted = false;
2546+
// Log that we are retaining this file and why
2547+
if (verboseLogging) {
2548+
addLogEntry("Path retained due to 'sync_root_files' override for logical root file: " ~ newItemPath, ["verbose"]);
2549+
}
25462550
} else {
25472551
// path is unwanted - excluded by 'sync_list'
25482552
unwanted = true;

0 commit comments

Comments
 (0)