goduf.go
changeset 1 a8aa9e54bce4
parent 0 a5642cd03cef
child 2 55098d552ae2
equal deleted inserted replaced
0:a5642cd03cef 1:a8aa9e54bce4
   418 			continue
   418 			continue
   419 		}
   419 		}
   420 
   420 
   421 		var hardlinksFound bool
   421 		var hardlinksFound bool
   422 
   422 
   423 		// Sort by device/inodes
       
   424 		sort.Sort(ByInode(sizeGroup.files))
       
   425 
       
   426 		// Check for hardlinks
   423 		// Check for hardlinks
   427 		// TODO: what about symlinks?
   424 		// TODO: what about symlinks?
   428 		// Remove unique dev/inodes
   425 		// Remove unique dev/inodes
   429 		// Instead of this loop, another way would be to use the field
   426 		// Instead of this loop, another way would be to use the field
   430 		// "Unique" of the fileObj to mark them to be discarded
   427 		// "Unique" of the fileObj to mark them to be discarded