From a15dbc8e036bf10992fa51cc74ef7c752f70ba35 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Fri, 28 Apr 2023 00:42:03 +0300 Subject: [PATCH] info: get_fs_type -> _get_fs_type This is not used anywhere outside so should be private like the rest. Likely a leftover from the past. --- dvc/info.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dvc/info.py b/dvc/info.py index 26d557211..ec6cd26d3 100644 --- a/dvc/info.py +++ b/dvc/info.py @@ -42,7 +42,7 @@ def get_dvc_info(): # `dvc config cache.shared group`. if os.path.exists(repo.cache.local.path): info.append(f"Cache types: {_get_linktype_support_info(repo)}") - fs_type = get_fs_type(repo.cache.local.path) + fs_type = _get_fs_type(repo.cache.local.path) info.append(f"Cache directory: {fs_type}") else: info.append("Cache types: " + error_link("no-dvc-cache")) @@ -51,7 +51,7 @@ def get_dvc_info(): info.append(f"Remotes: {_get_remotes(repo.config)}") root_directory = repo.root_dir - fs_root = get_fs_type(os.path.abspath(root_directory)) + fs_root = _get_fs_type(os.path.abspath(root_directory)) info.append(f"Workspace directory: {fs_root}") info.append(f"Repo: {_get_dvc_repo_info(repo)}") info.append(f"Repo.site_cache_dir: {repo.site_cache_dir}") @@ -136,7 +136,7 @@ def _get_supported_remotes(): return "\n\t" + ",\n\t".join(supported_remotes) -def get_fs_type(path): +def _get_fs_type(path): partition = {} for part in psutil.disk_partitions(all=True): if part.fstype: