Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions fsspec/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ def glob(self, path, maxdepth=None, **kwargs):
path: str
The glob pattern to match against
maxdepth: int or None
Maximum depth for '**' patterns. Applied on the first '**' found.
Maximum depth for ``'**'`` patterns. Applied on the first ``'**'`` found.
Must be at least 1 if provided.
**kwargs:
Additional arguments passed to ``find`` (e.g., detail=True)
Expand All @@ -570,7 +570,7 @@ def glob(self, path, maxdepth=None, **kwargs):
-----
Supported patterns:
- '*': Matches any sequence of characters within a single directory level
- '**': Matches any number of directory levels (must be an entire path component)
- ``'**'``: Matches any number of directory levels (must be an entire path component)
- '?': Matches exactly one character
- '[abc]': Matches any character in the set
- '[a-z]': Matches any character in the range
Expand All @@ -584,7 +584,7 @@ def glob(self, path, maxdepth=None, **kwargs):
- Special characters in character classes are escaped properly

Limitations:
- '**' must be a complete path component (e.g., 'a/**/b', not 'a**b')
- ``'**'`` must be a complete path component (e.g., ``'a/**/b'``, not ``'a**b'``)
- No brace expansion ('{a,b}.txt')
- No extended glob patterns ('+(pattern)', '!(pattern)')
"""
Expand Down
Loading