1
0
réplica de https://github.com/arsenetar/dupeguru.git synced 2026-03-09 10:31:38 +00:00

[#92 state:fixed] Added an option to ignore duplicates hardlinking to the same file.

Este commit está contenido en:
Virgil Dupras
2010-09-25 12:28:34 +02:00
padre 456a835285
commit 0a64d653e1
Se han modificado 24 ficheros con 415 adiciones y 61 borrados

Ver fichero

@@ -106,6 +106,7 @@ class DupeGuru(DupeGuruBase, QObject):
self.scanner.mix_file_kind = self.prefs.mix_file_kind
self.options['escape_filter_regexp'] = self.prefs.use_regexp
self.options['clean_empty_dirs'] = self.prefs.remove_empty_folders
self.options['ignore_hardlink_matches'] = self.prefs.ignore_hardlink_matches
#--- Virtual
def _create_details_dialog(self, parent):

Ver fichero

@@ -24,6 +24,7 @@ class Preferences(PreferencesBase):
get = self.get_value
self.filter_hardness = get('FilterHardness', self.filter_hardness)
self.mix_file_kind = get('MixFileKind', self.mix_file_kind)
self.ignore_hardlink_matches = get('IgnoreHardlinkMatches', self.ignore_hardlink_matches)
self.use_regexp = get('UseRegexp', self.use_regexp)
self.remove_empty_folders = get('RemoveEmptyFolders', self.remove_empty_folders)
self.destination_type = get('DestinationType', self.destination_type)
@@ -52,6 +53,7 @@ class Preferences(PreferencesBase):
self.filter_hardness = 95
self.mix_file_kind = True
self.use_regexp = False
self.ignore_hardlink_matches = False
self.remove_empty_folders = False
self.destination_type = 1
self.custom_command = ''
@@ -77,6 +79,7 @@ class Preferences(PreferencesBase):
set_ = self.set_value
set_('FilterHardness', self.filter_hardness)
set_('MixFileKind', self.mix_file_kind)
set_('IgnoreHardlinkMatches', self.ignore_hardlink_matches)
set_('UseRegexp', self.use_regexp)
set_('RemoveEmptyFolders', self.remove_empty_folders)
set_('DestinationType', self.destination_type)