BUG FIX: Duplicate extension on move.

This commit is contained in:
Christian Bastian
2024-02-25 23:17:07 -05:00
parent a4dd2f570b
commit 9a6c7033d8
2 changed files with 2 additions and 4 deletions

View File

@@ -706,7 +706,7 @@ async def delete_model(request):
_, extension = os.path.split(file)
if not extension in folder_paths_get_supported_pt_extensions(model_type):
# cannot move arbitrary files
# cannot delete arbitrary files
return web.json_response(result)
if os.path.isfile(file):