[entropy.tools] movefile: eventually remove src if it's a symlink
This commit is contained in:
@@ -641,6 +641,7 @@ def movefile(src, dest, src_basedir = None):
|
||||
os.unlink(dest)
|
||||
os.symlink(target, dest)
|
||||
os.lchown(dest, sstat[stat.ST_UID], sstat[stat.ST_GID])
|
||||
os.unlink(src)
|
||||
return True
|
||||
except SystemExit:
|
||||
raise
|
||||
|
||||
Reference in New Issue
Block a user