152 cant click through some nested dirs in tree view (#157)
* fix: basename error * prepare release 2.5.2
This commit is contained in:
@@ -124,13 +124,13 @@ class ModelManager:
|
|||||||
if not prefix_path.endswith("/"):
|
if not prefix_path.endswith("/"):
|
||||||
prefix_path = f"{prefix_path}/"
|
prefix_path = f"{prefix_path}/"
|
||||||
|
|
||||||
|
is_file = entry.is_file()
|
||||||
relative_path = utils.normalize_path(entry.path).replace(prefix_path, "")
|
relative_path = utils.normalize_path(entry.path).replace(prefix_path, "")
|
||||||
sub_folder = os.path.dirname(relative_path)
|
sub_folder = os.path.dirname(relative_path)
|
||||||
filename = os.path.basename(relative_path)
|
filename = os.path.basename(relative_path)
|
||||||
basename = os.path.splitext(filename)[0]
|
basename = os.path.splitext(filename)[0] if is_file else filename
|
||||||
extension = os.path.splitext(filename)[1]
|
extension = os.path.splitext(filename)[1] if is_file else ""
|
||||||
|
|
||||||
is_file = entry.is_file()
|
|
||||||
if is_file and extension not in folder_paths.supported_pt_extensions:
|
if is_file and extension not in folder_paths.supported_pt_extensions:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "comfyui-model-manager"
|
name = "comfyui-model-manager"
|
||||||
description = "Manage models: browsing, download and delete."
|
description = "Manage models: browsing, download and delete."
|
||||||
version = "2.5.1"
|
version = "2.5.2"
|
||||||
license = { file = "LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
dependencies = ["markdownify"]
|
dependencies = ["markdownify"]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user