dvc info: follow the symlink when deciding filesystem type (#5067)

This commit is contained in:
Johnny Chen
2020-12-09 16:38:52 +02:00
committed by GitHub
parent 7bf9a0e805
commit 13bb56aa8e
+2 -1
View File
@@ -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: