Skip to content

Commit 7d5a1b7

Browse files
author
atollk
committed
In fs.copy, changed calls to FS.getinfo to FS.getmodified.
1 parent db80988 commit 7d5a1b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/copy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ def _source_is_newer(src_fs, src_path, dst_fs, dst_path):
9898
try:
9999
if dst_fs.exists(dst_path):
100100
namespace = ("details", "modified")
101-
src_modified = src_fs.getinfo(src_path, namespace).modified
101+
src_modified = src_fs.getmodified(src_path)
102102
if src_modified is not None:
103-
dst_modified = dst_fs.getinfo(dst_path, namespace).modified
103+
dst_modified = dst_fs.getmodified(dst_path)
104104
return dst_modified is None or src_modified > dst_modified
105105
return True
106106
except FSError: # pragma: no cover

0 commit comments

Comments
 (0)