mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-09 21:24:36 +00:00
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
This commit is contained in:
parent
e89156e55c
commit
ed64428c80
@ -259,7 +259,7 @@ class DupeGuru(Broadcaster):
|
|||||||
|
|
||||||
def _create_file(self, path):
|
def _create_file(self, path):
|
||||||
# We add fs.Folder to fileclasses in case the file we're loading contains folder paths.
|
# 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):
|
def _get_file(self, str_path):
|
||||||
path = Path(str_path)
|
path = Path(str_path)
|
||||||
@ -537,11 +537,6 @@ class DupeGuru(Broadcaster):
|
|||||||
return empty_data()
|
return empty_data()
|
||||||
try:
|
try:
|
||||||
return dupe.get_display_info(group, delta)
|
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:
|
except Exception as e:
|
||||||
logging.warning(
|
logging.warning(
|
||||||
"Exception (type: %s) on GetDisplayInfo for %s: %s",
|
"Exception (type: %s) on GetDisplayInfo for %s: %s",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user