mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 13:25:52 +03:00
Add the size in the TREE_WALK_FILE structur
This commit is contained in:
parent
79c1514a2b
commit
3a57eb1b54
2 changed files with 2 additions and 6 deletions
|
@ -631,6 +631,7 @@ static int _csync_treewalk_visitor(void *obj, void *data) {
|
|||
visitor = (c_rbtree_visit_func*)(twctx->user_visitor);
|
||||
if (visitor != NULL) {
|
||||
trav.path = cur->path;
|
||||
trav.size = cur->size;
|
||||
trav.modtime = cur->modtime;
|
||||
trav.uid = cur->uid;
|
||||
trav.gid = cur->gid;
|
||||
|
|
|
@ -174,16 +174,11 @@ typedef struct csync_progress_s CSYNC_PROGRESS;
|
|||
*
|
||||
* This structure is passed to the visitor function for every file
|
||||
* which is seen.
|
||||
* Note: The file size is missing here because type int64_t is depending
|
||||
* on the large file support in your build. Make sure to check
|
||||
* that cmake and the callback app are compiled with the same
|
||||
* setting for it, such as:
|
||||
* -D_LARGEFILE64_SOURCE or -D_LARGEFILE_SOURCE
|
||||
*
|
||||
*/
|
||||
struct csync_tree_walk_file_s {
|
||||
const char *path;
|
||||
/* off_t size; */
|
||||
int64_t size;
|
||||
time_t modtime;
|
||||
#ifdef _WIN32
|
||||
uint32_t uid;
|
||||
|
|
Loading…
Reference in a new issue