Fix renameFile
This commit is contained in:
parent
1d1069da5e
commit
81cadece75
@ -90,12 +90,11 @@ def renameFile(path,newpath):
|
||||
os.rename(filePath(path),filePath(newpath))
|
||||
|
||||
if target["type"] == "wim":
|
||||
os.rename(filePath(path),filePath(newpath))
|
||||
subprocess.run([
|
||||
"wimlib-imagex","update",
|
||||
target["path"],str(target["index"]),
|
||||
"--command=delete '" +path+ "'"
|
||||
],check=True)
|
||||
"--command=rename '" +path+ "' '" +newpath+ "'"
|
||||
],check=True,stdout=subprocess.DEVNULL)
|
||||
|
||||
def removeFile(path):
|
||||
if target["type"] == "offline":
|
||||
|
Loading…
Reference in New Issue
Block a user