From 13bb56aa8ecbcd81641ee5faf39aac80e9f102ec Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Wed, 9 Dec 2020 22:38:52 +0800 Subject: [PATCH] dvc info: follow the symlink when deciding filesystem type (#5067) --- dvc/info.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dvc/info.py b/dvc/info.py index 4d8cbf811..e7c05f05e 100644 --- a/dvc/info.py +++ b/dvc/info.py @@ -142,7 +142,8 @@ def get_fs_type(path): for part in psutil.disk_partitions(all=True) } - path = pathlib.Path(path) + # need to follow the symlink: https://github.com/iterative/dvc/issues/5065 + path = pathlib.Path(path).resolve() for parent in itertools.chain([path], path.parents): if parent in partition: