mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-25 05:45:42 +03:00
Add name of rename target to treewalk data structure.
This commit is contained in:
parent
8bdf0694ca
commit
0db9427377
3 changed files with 11 additions and 6 deletions
|
@ -578,6 +578,7 @@ static int _csync_treewalk_visitor(void *obj, void *data) {
|
|||
trav.mode = cur->mode;
|
||||
trav.type = cur->type;
|
||||
trav.instruction = cur->instruction;
|
||||
trav.rename_path = cur->destpath;
|
||||
|
||||
return (*visitor)(&trav, twctx->userdata);
|
||||
}
|
||||
|
|
11
src/csync.h
11
src/csync.h
|
@ -115,6 +115,13 @@ enum csync_instructions_e {
|
|||
CSYNC_INSTRUCTION_UPDATED = 0x00000400
|
||||
};
|
||||
|
||||
enum csync_ftw_type_e {
|
||||
CSYNC_FTW_TYPE_FILE,
|
||||
CSYNC_FTW_TYPE_SLINK,
|
||||
CSYNC_FTW_TYPE_DIR
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* CSync File Traversal structure.
|
||||
*
|
||||
|
@ -139,8 +146,10 @@ struct csync_tree_walk_file_s {
|
|||
gid_t gid;
|
||||
#endif
|
||||
mode_t mode;
|
||||
int type;
|
||||
enum csync_ftw_type_e type;
|
||||
enum csync_instructions_e instruction;
|
||||
|
||||
const char *rename_path;
|
||||
};
|
||||
typedef struct csync_tree_walk_file_s TREE_WALK_FILE;
|
||||
|
||||
|
|
|
@ -142,11 +142,6 @@ struct csync_s {
|
|||
int status;
|
||||
};
|
||||
|
||||
enum csync_ftw_type_e {
|
||||
CSYNC_FTW_TYPE_FILE,
|
||||
CSYNC_FTW_TYPE_SLINK,
|
||||
CSYNC_FTW_TYPE_DIR
|
||||
};
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma pack(1)
|
||||
|
|
Loading…
Reference in a new issue