mirror of
https://github.com/rommapp/romm.git
synced 2026-06-27 22:35:57 +00:00
changes from bot review
This commit is contained in:
@@ -134,7 +134,8 @@ class RAHasherService:
|
||||
return [
|
||||
f
|
||||
for f in folder.iterdir()
|
||||
if f.is_file() and f.suffix.lower() in COMPRESSED_FILE_EXTENSIONS
|
||||
if f.is_file()
|
||||
and f.name.lower().endswith(tuple(COMPRESSED_FILE_EXTENSIONS))
|
||||
]
|
||||
|
||||
archive_files = await asyncio.to_thread(_find_archives)
|
||||
|
||||
@@ -9,7 +9,7 @@ from pathlib import Path
|
||||
# (roms_handler for hashing decisions, rahasher for skipping disc-platform
|
||||
# buffer-hash attempts, feeds for PKGi passthrough).
|
||||
COMPRESSED_FILE_EXTENSIONS: frozenset[str] = frozenset(
|
||||
(".7z", ".bz2", ".gz", ".rar", ".tar", ".zip")
|
||||
(".7z", ".bz2", ".gz", ".rar", ".tar", ".zip", ".xz", ".tgz", ".tbz2", ".txz")
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user