mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-23 22:22:11 -03:00
Refactor and optimize code for improved readability and maintainability
This commit is contained in:
@@ -28,7 +28,7 @@ def _find_preview_file(base_name: str, dir_path: str) -> str:
|
||||
for pattern in preview_patterns:
|
||||
full_pattern = os.path.join(dir_path, pattern)
|
||||
if os.path.exists(full_pattern):
|
||||
return full_pattern.replace("\\", "/")
|
||||
return full_pattern.replace(os.sep, "/")
|
||||
return ""
|
||||
|
||||
async def get_file_info(file_path: str) -> LoraMetadata:
|
||||
|
||||
Reference in New Issue
Block a user