Skip to content

Commit

Permalink
Rev 696: Normalize folder path for duplicated file within the constru…
Browse files Browse the repository at this point in the history
…ctor to ensure it's displayed right always
  • Loading branch information
trickerer01 committed Oct 10, 2024
1 parent bf050c5 commit 808a394
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/app_file_searcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
def find_duplicated_files(basepath: str, scan_depth: int) -> dict[str, list[str]]:
class DFileInfo:
def __init__(self, folder: str, name: str, size: int) -> None:
self.folder: str = folder
self.folder: str = normalize_path(folder)
self.name: str = name
self.size: int = size

Expand Down Expand Up @@ -56,7 +56,7 @@ def scan_folder(base_folder: str, level: int) -> None:
if fsize and fsize not in files_by_size:
files_by_size[fsize] = list()
fsbase_folder, fname = path.split(filepath)
files_by_size[fsize].append(DFileInfo(normalize_path(fsbase_folder), fname, fsize))
files_by_size[fsize].append(DFileInfo(fsbase_folder, fname, fsize))
for fsz in list(files_by_size.keys()).copy():
if fsz in files_by_size and len(files_by_size[fsz]) < 2:
del files_by_size[fsz]
Expand Down
4 changes: 2 additions & 2 deletions src/app_revision.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
APP_NAME = 'Ruxx'
APP_VER_MAJOR = '1'
APP_VER_SUB = '6'
APP_REVISION = '695'
APP_REVISION = '696'
APP_IS_BETA = False
APP_IS_BETA_TEXT = 'b' * APP_IS_BETA
APP_REV_DATE = '05 Oct 2024'
APP_REV_DATE = '10 Oct 2024'
APP_VERSION = f'{APP_VER_MAJOR}.{APP_VER_SUB} r{APP_REVISION}{APP_IS_BETA_TEXT}'

#
Expand Down

0 comments on commit 808a394

Please sign in to comment.