mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 17:37:36 +03:00
Do not issue a rename when the file was modified localy
This commit is contained in:
parent
71caa3356c
commit
170e5389b3
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ static int _csync_detect_update(CSYNC *ctx, const char *file,
|
|||
/* check if it's a file and has been renamed */
|
||||
if (ctx->current == LOCAL_REPLICA) {
|
||||
tmp = csync_statedb_get_stat_by_inode(ctx, fs->inode);
|
||||
if (tmp && tmp->inode == fs->inode) {
|
||||
if (tmp && tmp->inode == fs->inode && (tmp->modtime == fs->mtime || fs->type == CSYNC_FTW_TYPE_DIR)) {
|
||||
CSYNC_LOG(CSYNC_LOG_PRIORITY_TRACE, "inodes: %ld <-> %ld", tmp->inode, fs->inode);
|
||||
/* inode found so the file has been renamed */
|
||||
st->instruction = CSYNC_INSTRUCTION_RENAME;
|
||||
|
|
Loading…
Reference in a new issue