Skip to content

Commit

Permalink
Fixes syncing in sub directories.
Browse files Browse the repository at this point in the history
Signed-off-by: Camila San <hello@camila.codes>
  • Loading branch information
Camila San committed Feb 4, 2019
1 parent 653c10b commit 706cfe8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/csync/csync_reconcile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,13 @@ static void _csync_merge_algorithm_visitor(csync_file_stat_t *cur, CSYNC * ctx)
cur->instruction = CSYNC_INSTRUCTION_NONE;
if (is_conflict)
other->instruction = CSYNC_INSTRUCTION_CONFLICT;
else
other->instruction = !cur->is_fuse_created_file ? CSYNC_INSTRUCTION_UPDATE_METADATA : CSYNC_INSTRUCTION_SYNC;
else {
if(other->type == ItemTypeDirectory && cur->type == ItemTypeDirectory)
other->instruction = CSYNC_INSTRUCTION_UPDATE_METADATA;
else
other->instruction = (!cur->is_fuse_created_file) ? CSYNC_INSTRUCTION_UPDATE_METADATA : CSYNC_INSTRUCTION_SYNC;
}

}

break;
Expand Down

1 comment on commit 706cfe8

@PraMiD
Copy link

@PraMiD PraMiD commented on 706cfe8 Feb 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any further process on this feature. Especially with regards to port it to Linux?

Please sign in to comment.