From c6ae91c9072a4b0cd9b40b17632e979bae0edd72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Saugat=20Pachhai=20=28=E0=A4=B8=E0=A5=8C=E0=A4=97=E0=A4=BE?= =?UTF-8?q?=E0=A4=A4=29?= Date: Sat, 14 May 2022 13:19:30 +0545 Subject: [PATCH] dvc.fs: fix iscopy --- dvc/fs/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dvc/fs/base.py b/dvc/fs/base.py index 03efbe773..a9d5231ad 100644 --- a/dvc/fs/base.py +++ b/dvc/fs/base.py @@ -321,7 +321,7 @@ class FileSystem: return False def iscopy(self, path: AnyFSPath) -> bool: - return self.is_symlink(path) or self.is_hardlink(path) + return not (self.is_symlink(path) or self.is_hardlink(path)) @overload def ls(