Skip to content

Commit

Permalink
fix(dirfs): correct protocol of DirFileSystem (fsspec#1311)
Browse files Browse the repository at this point in the history
Per discussion on fsspec#1307
  • Loading branch information
Mause authored Jul 14, 2023
1 parent a85876a commit e06f2ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fsspec/implementations/dirfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class DirFileSystem(AsyncFileSystem):
delegates everything to the wrapped filesystem.
"""

protocol = "dirfs"
protocol = "dir"

def __init__(
self,
Expand Down
2 changes: 1 addition & 1 deletion fsspec/implementations/tests/test_dirfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ def test_glob(dirfs):

def test_glob_with_protocol(dirfs):
dirfs.fs.glob.return_value = [f"{PATH}/one", f"{PATH}/two"]
assert dirfs.glob("dirfs://*", **KWARGS) == ["one", "two"]
assert dirfs.glob("dir://*", **KWARGS) == ["one", "two"]
dirfs.fs.glob.assert_called_once_with(f"{PATH}/*", **KWARGS)


Expand Down

0 comments on commit e06f2ef

Please sign in to comment.