Fix renameFile

This commit is contained in:
Fierelier 2021-11-13 06:31:59 +01:00
parent 1d1069da5e
commit 81cadece75

View File

@ -90,12 +90,11 @@ def renameFile(path,newpath):
os.rename(filePath(path),filePath(newpath)) os.rename(filePath(path),filePath(newpath))
if target["type"] == "wim": if target["type"] == "wim":
os.rename(filePath(path),filePath(newpath))
subprocess.run([ subprocess.run([
"wimlib-imagex","update", "wimlib-imagex","update",
target["path"],str(target["index"]), target["path"],str(target["index"]),
"--command=delete '" +path+ "'" "--command=rename '" +path+ "' '" +newpath+ "'"
],check=True) ],check=True,stdout=subprocess.DEVNULL)
def removeFile(path): def removeFile(path):
if target["type"] == "offline": if target["type"] == "offline":