@@ -332,7 +332,7 @@ def copy_dir_if(
332
332
src_path , # type: Text
333
333
dst_fs , # type: Union[FS, Text]
334
334
dst_path , # type: Text
335
- condition = "always" , # type: Text
335
+ condition , # type: Text
336
336
walker = None , # type: Optional[Walker]
337
337
on_copy = None , # type: Optional[_OnCopy]
338
338
workers = 0 , # type: int
@@ -398,7 +398,7 @@ def _copy_is_necessary(
398
398
399
399
elif condition == "newer" :
400
400
try :
401
- namespace = ("details" , "modified" )
401
+ namespace = ("details" ,)
402
402
src_modified = src_fs .getinfo (src_path , namespace ).modified
403
403
dst_modified = dst_fs .getinfo (dst_path , namespace ).modified
404
404
except ResourceNotFound :
@@ -412,7 +412,7 @@ def _copy_is_necessary(
412
412
413
413
elif condition == "older" :
414
414
try :
415
- namespace = ("details" , "modified" )
415
+ namespace = ("details" ,)
416
416
src_modified = src_fs .getinfo (src_path , namespace ).modified
417
417
dst_modified = dst_fs .getinfo (dst_path , namespace ).modified
418
418
except ResourceNotFound :
0 commit comments