Skip to content

Commit

Permalink
Remove requests for modified namespace in fs.copy._copy_is_necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
althonos committed Apr 8, 2021
1 parent e63cee2 commit 2d04cca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fs/copy.py
Expand Up @@ -332,7 +332,7 @@ def copy_dir_if(
src_path, # type: Text
dst_fs, # type: Union[FS, Text]
dst_path, # type: Text
condition="always", # type: Text
condition, # type: Text
walker=None, # type: Optional[Walker]
on_copy=None, # type: Optional[_OnCopy]
workers=0, # type: int
Expand Down Expand Up @@ -398,7 +398,7 @@ def _copy_is_necessary(

elif condition == "newer":
try:
namespace = ("details", "modified")
namespace = ("details",)
src_modified = src_fs.getinfo(src_path, namespace).modified
dst_modified = dst_fs.getinfo(dst_path, namespace).modified
except ResourceNotFound:
Expand All @@ -412,7 +412,7 @@ def _copy_is_necessary(

elif condition == "older":
try:
namespace = ("details", "modified")
namespace = ("details",)
src_modified = src_fs.getinfo(src_path, namespace).modified
dst_modified = dst_fs.getinfo(dst_path, namespace).modified
except ResourceNotFound:
Expand Down

0 comments on commit 2d04cca

Please sign in to comment.