From ed64428c80d35afa07004fd47a4218d686c6c94e Mon Sep 17 00:00:00 2001 From: glubsy Date: Wed, 24 Jun 2020 23:32:04 +0200 Subject: [PATCH] Add missing file class for folder type. * results.py doesn't set the proper type for dupes at the line "file = get_file(path)" so we add it on top * Perhap it could have been added to _get_fileclasses() in core.app.py too but I have not tested it --- core/app.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/core/app.py b/core/app.py index 070769e1..94055b26 100644 --- a/core/app.py +++ b/core/app.py @@ -259,7 +259,7 @@ class DupeGuru(Broadcaster): def _create_file(self, path): # We add fs.Folder to fileclasses in case the file we're loading contains folder paths. - return fs.get_file(path, self.fileclasses + [fs.Folder]) + return fs.get_file(path, self.fileclasses + [se.fs.Folder] + [fs.Folder]) def _get_file(self, str_path): path = Path(str_path) @@ -537,11 +537,6 @@ class DupeGuru(Broadcaster): return empty_data() try: return dupe.get_display_info(group, delta) - except NotImplementedError as e: - logging.warning( - "Exception (type: %s) on GetDisplayInfo for %s: %s", - type(e), str(dupe.path), str(e)) - return se.fs.Folder.get_display_info(dupe, group, delta) except Exception as e: logging.warning( "Exception (type: %s) on GetDisplayInfo for %s: %s",