mirror of
https://github.com/restic/restic.git
synced 2025-03-09 00:00:02 +01:00
calculate node.Size
This commit is contained in:
parent
42afd5c0aa
commit
14216043c1
1 changed files with 2 additions and 1 deletions
|
@ -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 ||
|
||||
|
|
Loading…
Add table
Reference in a new issue