mirror of
				https://github.com/arsenetar/dupeguru.git
				synced 2025-09-11 17:58:17 +00:00 
			
		
		
		
	Compare commits
	
		
			4 Commits
		
	
	
		
			1be1e32c33
			...
			0558ec13e5
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 0558ec13e5 | ||
|  | 8f197ea7e1 | ||
|  | 95c49ffdef | ||
|  | b72b64f4fc | 
| @ -96,6 +96,8 @@ class FilenameCategory(CriterionCategory): | |||||||
|     DOESNT_END_WITH_NUMBER = 1 |     DOESNT_END_WITH_NUMBER = 1 | ||||||
|     LONGEST = 2 |     LONGEST = 2 | ||||||
|     SHORTEST = 3 |     SHORTEST = 3 | ||||||
|  |     LONGEST_PATH = 4 | ||||||
|  |     SHORTEST_PATH = 5 | ||||||
| 
 | 
 | ||||||
|     def format_criterion_value(self, value): |     def format_criterion_value(self, value): | ||||||
|         return { |         return { | ||||||
| @ -103,6 +105,8 @@ class FilenameCategory(CriterionCategory): | |||||||
|             self.DOESNT_END_WITH_NUMBER: tr("Doesn't end with number"), |             self.DOESNT_END_WITH_NUMBER: tr("Doesn't end with number"), | ||||||
|             self.LONGEST: tr("Longest"), |             self.LONGEST: tr("Longest"), | ||||||
|             self.SHORTEST: tr("Shortest"), |             self.SHORTEST: tr("Shortest"), | ||||||
|  |             self.LONGEST_PATH: tr("Longest Path"), | ||||||
|  |             self.SHORTEST_PATH: tr("Shortest Path"), | ||||||
|         }[value] |         }[value] | ||||||
| 
 | 
 | ||||||
|     def extract_value(self, dupe): |     def extract_value(self, dupe): | ||||||
| @ -116,6 +120,10 @@ class FilenameCategory(CriterionCategory): | |||||||
|                 return 0 if ends_with_digit else 1 |                 return 0 if ends_with_digit else 1 | ||||||
|             else: |             else: | ||||||
|                 return 1 if ends_with_digit else 0 |                 return 1 if ends_with_digit else 0 | ||||||
|  |         elif crit_value == self.LONGEST_PATH: | ||||||
|  |             return len(str(dupe.folder_path)) * -1 | ||||||
|  |         elif crit_value == self.SHORTEST_PATH: | ||||||
|  |             return len(str(dupe.folder_path)) | ||||||
|         else: |         else: | ||||||
|             value = len(value) |             value = len(value) | ||||||
|             if crit_value == self.LONGEST: |             if crit_value == self.LONGEST: | ||||||
| @ -130,6 +138,8 @@ class FilenameCategory(CriterionCategory): | |||||||
|                 self.DOESNT_END_WITH_NUMBER, |                 self.DOESNT_END_WITH_NUMBER, | ||||||
|                 self.LONGEST, |                 self.LONGEST, | ||||||
|                 self.SHORTEST, |                 self.SHORTEST, | ||||||
|  |                 self.LONGEST_PATH, | ||||||
|  |                 self.SHORTEST_PATH, | ||||||
|             ] |             ] | ||||||
|         ] |         ] | ||||||
| 
 | 
 | ||||||
|  | |||||||
							
								
								
									
										19
									
								
								pkg/debian/dupeguru.1
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								pkg/debian/dupeguru.1
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,19 @@ | |||||||
|  | .TH dupeguru 1 2015-01-15 "debomatic" | ||||||
|  | .SH NAME | ||||||
|  | dupeguru \- GUI tool to find duplicate files in a system | ||||||
|  | .SH SYNOPSIS | ||||||
|  | .B dupeguru | ||||||
|  | .SH DESCRIPTION | ||||||
|  | dupeGuru is a tool to find duplicate files on your computer. | ||||||
|  | .PP | ||||||
|  | It can scan either filenames or contents. The filename scan features a | ||||||
|  | fuzzy matching algorithm that can find duplicate filenames even when | ||||||
|  | they are not exactly the same. | ||||||
|  | .PP | ||||||
|  | dupeGuru is customizable: you can tweak its matching engine to find | ||||||
|  | exactly the kind of duplicates you want to find. | ||||||
|  | .SH COPYRIGHT | ||||||
|  | This manual page is Copyright 2007-2022 Luca Falavigna <dktrkranz@debian.org>. | ||||||
|  | Permission is granted to copy, distribute and/or modify this document | ||||||
|  | under the terms of the GNU General Public License, Version 3 or any later | ||||||
|  | version published by the Free Software Foundation. | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user