Skip to content

Commit

Permalink
update glob docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
jlowin committed May 17, 2024
1 parent fbfa2e6 commit 7750c83
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/marvin/tools/filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,10 @@ def ls(path: str) -> str:

def glob(pattern: str) -> list[str]:
"""
Returns a list of paths matching a valid glob pattern.
The pattern can include ** for recursive matching, such as
'~/path/to/root/**/*.py'
Returns a list of paths matching a valid glob pattern. The pattern can
include ** for recursive matching, such as '~/path/to/root/**/*.py'. Only
simple glob patterns are supported, no braces or other advanced features
like searching multiple file extensions at once.
"""
return glob_module.glob(pattern, recursive=True)

Expand Down

0 comments on commit 7750c83

Please sign in to comment.