From 14216043c1080e839ae7e545175790851643c822 Mon Sep 17 00:00:00 2001 From: Marcelo Pires Date: Mon, 23 Mar 2015 01:53:50 +0000 Subject: [PATCH] calculate node.Size --- node_windows.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node_windows.go b/node_windows.go index 36c3339e2..9b9526227 100644 --- a/node_windows.go +++ b/node_windows.go @@ -54,6 +54,7 @@ func (node *Node) fill_extra(path string, fi os.FileInfo) (err error) { switch node.Type { case "file": node.Size = uint64(fi.Size()) + //node.Size = uint64(byhandlefi.FileSizeHigh)<<32 | uint64(byhandlefi.FileSizeLow) //node.Links = uint64(byhandlefi.NumberOfLinks) case "dir": // nothing to do @@ -120,7 +121,7 @@ func (node *Node) isNewer(path string, fi os.FileInfo) bool { //we can use latter size := uint64(fi.Size()) - + //size = uint64(byhandlefi.FileSizeHigh)<<32 | uint64(byhandlefi.FileSizeLow) // if timestamps or inodes differ, content has changed if node.ModTime != fi.ModTime() || node.ChangeTime != changeTime ||