Skip to content
Snippets Groups Projects
Commit ec409771 authored by Piotr Ożarowski's avatar Piotr Ożarowski
Browse files

make sure fpath3 and fpath2 have the same same content before replacing with a symlink

parent f28420ec
No related branches found
No related tags found
No related merge requests found
......@@ -280,7 +280,7 @@ def share_2x(dir1, dir2, dc=None):
os.rename(fpath1, fpath3)
relative_symlink(fpath3, fpath1)
relative_symlink(fpath3, fpath2)
else:
elif fcmp(fpath2, fpath3, shallow=False):
os.remove(fpath2)
relative_symlink(fpath3, fpath2)
for dn, dc in common_dirs:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment