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