diff --git a/dvc/fs/local.py b/dvc/fs/local.py index d614646e1..fce8c6cfc 100644 --- a/dvc/fs/local.py +++ b/dvc/fs/local.py @@ -32,7 +32,9 @@ class LocalFileSystem(BaseFileSystem): def exists(self, path_info) -> bool: assert isinstance(path_info, str) or path_info.scheme == "local" - return self.fs.exists(path_info) + # NOTE: os.fspath could be removed after fsspec 2021.06.1 + # https://github.com/intake/filesystem_spec/issues/666 + return self.fs.exists(os.fspath(path_info)) def isfile(self, path_info) -> bool: return os.path.isfile(path_info) diff --git a/setup.py b/setup.py index f19374f54..cc3172214 100644 --- a/setup.py +++ b/setup.py @@ -88,7 +88,7 @@ install_requires = [ "python-benedict>=0.21.1", "pyparsing==2.4.7", "typing_extensions>=3.7.4", - "fsspec @ git+https://github.com/intake/filesystem_spec.git", + "fsspec==2021.6.0", "diskcache>=5.2.1", ]