Skip to content

Commit 2d04cca

Browse files
committed
Remove requests for modified namespace in fs.copy._copy_is_necessary
1 parent e63cee2 commit 2d04cca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fs/copy.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ def copy_dir_if(
332332
src_path, # type: Text
333333
dst_fs, # type: Union[FS, Text]
334334
dst_path, # type: Text
335-
condition="always", # type: Text
335+
condition, # type: Text
336336
walker=None, # type: Optional[Walker]
337337
on_copy=None, # type: Optional[_OnCopy]
338338
workers=0, # type: int
@@ -398,7 +398,7 @@ def _copy_is_necessary(
398398

399399
elif condition == "newer":
400400
try:
401-
namespace = ("details", "modified")
401+
namespace = ("details",)
402402
src_modified = src_fs.getinfo(src_path, namespace).modified
403403
dst_modified = dst_fs.getinfo(dst_path, namespace).modified
404404
except ResourceNotFound:
@@ -412,7 +412,7 @@ def _copy_is_necessary(
412412

413413
elif condition == "older":
414414
try:
415-
namespace = ("details", "modified")
415+
namespace = ("details",)
416416
src_modified = src_fs.getinfo(src_path, namespace).modified
417417
dst_modified = dst_fs.getinfo(dst_path, namespace).modified
418418
except ResourceNotFound:

0 commit comments

Comments
 (0)