diff --git a/backend/src/config/__init__.py b/backend/src/config/__init__.py index 49eeb091e..951423ce0 100644 --- a/backend/src/config/__init__.py +++ b/backend/src/config/__init__.py @@ -13,9 +13,6 @@ SQLITE_DB_BASE_PATH: str = "/romm/database" HIGH_PRIO_STRUCTURE_PATH: str = f"{LIBRARY_BASE_PATH}/roms" RESOURCES_BASE_PATH: str = "/romm/resources" -# ROMM RESERVED FOLDERS -RESERVED_FOLDERS: list = ['resources'] - # DEFAULT RESOURCES DEFAULT_URL_COVER_L: str = "https://images.igdb.com/igdb/image/upload/t_cover_big/nocover.png" DEFAULT_PATH_COVER_L: str = f"{RESOURCES_BASE_PATH}/default/cover_l.png" diff --git a/backend/src/utils/fs.py b/backend/src/utils/fs.py index 38efbb145..c8125070c 100644 --- a/backend/src/utils/fs.py +++ b/backend/src/utils/fs.py @@ -6,7 +6,7 @@ from pathlib import Path import requests from fastapi import HTTPException -from config import user_config, LIBRARY_BASE_PATH, HIGH_PRIO_STRUCTURE_PATH, RESERVED_FOLDERS, RESOURCES_BASE_PATH, DEFAULT_URL_COVER_L, DEFAULT_PATH_COVER_L, DEFAULT_URL_COVER_S, DEFAULT_PATH_COVER_S +from config import user_config, LIBRARY_BASE_PATH, HIGH_PRIO_STRUCTURE_PATH, RESOURCES_BASE_PATH, DEFAULT_URL_COVER_L, DEFAULT_PATH_COVER_L, DEFAULT_URL_COVER_S, DEFAULT_PATH_COVER_S from handler import dbh from logger.logger import log @@ -36,7 +36,6 @@ def get_platforms() -> list[str]: platforms: list[str] = list(os.walk(f"{LIBRARY_BASE_PATH}/roms"))[0][1] else: platforms: list[str] = list(os.walk(LIBRARY_BASE_PATH))[0][1] - [platforms.remove(reserved) for reserved in RESERVED_FOLDERS if reserved in platforms] try: excluded_folders: list = user_config['exclude']['folders'] try: