File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,14 @@ def reconcile_touch(self) -> List[PhysicalSyncPlan]:
135135 ops = []
136136 ops .extend (self .reconcile_dir (self .dst_path ))
137137
138- if self .dst_path .exists ():
138+ dst_path_stat = None
139+ try :
140+ dst_path_stat = self .dst_path .lstat ()
141+ except :
142+ pass
143+
144+ if dst_path_stat is not None :
145+ # if dst_path exists in any form.
139146 return []
140147
141148 ops .append (PhysicalSyncPlan (
@@ -149,7 +156,14 @@ def reconcile_link(self) -> List[PhysicalSyncPlan]:
149156 ops = []
150157 ops .extend (self .reconcile_dir (self .dst_path ))
151158
152- if not self .dst_path .exists ():
159+ dst_path_stat = None
160+ try :
161+ dst_path_stat = self .dst_path .lstat ()
162+ except :
163+ pass
164+
165+ if dst_path_stat is None :
166+ # if dst_path does not exist.
153167 ops .append (PhysicalSyncPlan (
154168 type = "link" , action = "create" ,
155169 src_path = self .src_path ,
Original file line number Diff line number Diff line change 1- __version__ = "0.1.5 "
1+ __version__ = "0.1.7 "
You can’t perform that action at this time.
0 commit comments