We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
**
1 parent d990b84 commit d166cc6Copy full SHA for d166cc6
src/vectorcode/cli_utils.py
@@ -444,6 +444,8 @@ async def expand_globs(
444
curr = stack.pop()
445
if os.path.isfile(curr):
446
result.add(expand_path(curr))
447
+ elif "**" in str(curr):
448
+ stack.extend(glob.glob(str(curr), recursive=True))
449
elif "*" in str(curr):
450
stack.extend(glob.glob(str(curr), recursive=recursive))
451
elif os.path.isdir(curr) and recursive:
tests/test_cli_utils.py
@@ -166,6 +166,8 @@ async def test_expand_globs():
166
assert len(expanded_paths) == 1
167
assert file2_path in expanded_paths
168
169
+ assert len(await expand_globs([os.path.join(temp_dir, "**", "*.txt")])) == 3
170
+
171
172
def test_expand_path():
173
path_with_user = "~/test_dir"
0 commit comments