1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 19:09:44 +00:00

ensure file exists for mirroring rights

This commit is contained in:
deadc0de6
2020-11-15 15:18:22 +01:00
parent 442d7e53fd
commit 240e554604

View File

@@ -300,6 +300,8 @@ def dependencies_met():
def mirror_file_rights(src, dst):
"""mirror file rights of src to dst (can rise exc)"""
if not os.path.exists(src) or not os.path.exists(dst):
return
rights = get_file_perm(src)
os.chmod(dst, rights)