BUG FIX: Duplicate extension on move.
This commit is contained in:
@@ -706,7 +706,7 @@ async def delete_model(request):
|
|||||||
|
|
||||||
_, extension = os.path.split(file)
|
_, extension = os.path.split(file)
|
||||||
if not extension in folder_paths_get_supported_pt_extensions(model_type):
|
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)
|
return web.json_response(result)
|
||||||
|
|
||||||
if os.path.isfile(file):
|
if os.path.isfile(file):
|
||||||
|
|||||||
@@ -1836,12 +1836,10 @@ class ModelManager extends ComfyDialog {
|
|||||||
const container = this.#el.modelInfoContainer;
|
const container = this.#el.modelInfoContainer;
|
||||||
const oldFile = container.dataset.path;
|
const oldFile = container.dataset.path;
|
||||||
const [oldFilePath, oldFileName] = searchPath_split(oldFile);
|
const [oldFilePath, oldFileName] = searchPath_split(oldFile);
|
||||||
const [_, extension] = searchPath_splitExtension(oldFile);
|
|
||||||
const newFile = (
|
const newFile = (
|
||||||
moveDestinationInput.value +
|
moveDestinationInput.value +
|
||||||
this.#searchSeparator +
|
this.#searchSeparator +
|
||||||
oldFileName +
|
oldFileName
|
||||||
extension
|
|
||||||
);
|
);
|
||||||
moved = await request(
|
moved = await request(
|
||||||
`/model-manager/model/move`,
|
`/model-manager/model/move`,
|
||||||
|
|||||||
Reference in New Issue
Block a user