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))
|
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":
|
||||||
|
Loading…
Reference in New Issue
Block a user