goduf.go
changeset 44 af90d9396ef1
parent 43 95d940f9598e
child 45 ea6a9ba7a3c8
equal deleted inserted replaced
43:95d940f9598e 44:af90d9396ef1
   506 	result = append(result, data.findDupes(options.SkipPartial)...)
   506 	result = append(result, data.findDupes(options.SkipPartial)...)
   507 
   507 
   508 	myLog.Println(3, "* Number of match groups:", len(result))
   508 	myLog.Println(3, "* Number of match groups:", len(result))
   509 
   509 
   510 	// Done!  Prepare results data
   510 	// Done!  Prepare results data
   511 	if len(result) > 0 && !options.Summary && !options.OutToJSON {
   511 	if len(result) > 0 && !options.Summary {
   512 		myLog.Println(1, "* Dupes:")
   512 		if options.OutToJSON {
       
   513 			myLog.Println(1, "* Dumping dupes as JSON...")
       
   514 		} else {
       
   515 			myLog.Println(1, "* Dupes:")
       
   516 		}
   513 	}
   517 	}
   514 
   518 
   515 	// Sort files by path inside each group
   519 	// Sort files by path inside each group
   516 	for _, l := range result {
   520 	for _, l := range result {
   517 		sort.Sort(byFilePathName(l))
   521 		sort.Sort(byFilePathName(l))